Commit 16985b0ce06adc1a379066ba71214afb3dac4391
1 parent
094797a978
Exists in
smarc_8mq-imx_v2020.04_5.4.24_2.1.0
and in
3 other branches
MLK-21847 pinctrl: imx8/imx8m: Remove DEVRES selecting
The CONFIG_DEVRES is not a necessary config for pinctrl. We decouple the dependence from the kconfig. So the DEVRES is not default enabled. When using USB gadget driver like CDNS3 or DWC3, without enabling gadget DM driver, the calling to devm_kzalloc will cause crash if CONFIG_DEVRES is set. Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit baeed1c2a36c07126e35a3cdb34f4f392e88c939)
Showing 1 changed file with 0 additions and 2 deletions Side-by-side Diff
drivers/pinctrl/nxp/Kconfig
... | ... | @@ -63,7 +63,6 @@ |
63 | 63 | config PINCTRL_IMX8 |
64 | 64 | bool "IMX8 pinctrl driver" |
65 | 65 | depends on ARCH_IMX8 && PINCTRL_FULL |
66 | - select DEVRES | |
67 | 66 | select PINCTRL_IMX |
68 | 67 | select PINCTRL_IMX_SCU |
69 | 68 | help |
... | ... | @@ -78,7 +77,6 @@ |
78 | 77 | config PINCTRL_IMX8M |
79 | 78 | bool "IMX8M pinctrl driver" |
80 | 79 | depends on ARCH_IMX8M && PINCTRL_FULL |
81 | - select DEVRES | |
82 | 80 | select PINCTRL_IMX |
83 | 81 | help |
84 | 82 | Say Y here to enable the imx8m pinctrl driver |