WSL2-Linux-Kernel/drivers/pinctrl/freescale
Haibo Chen 13f2d25b95 Revert "pinctrl: freescale: imx: Use 'devm_of_iomap()' to avoid a resource leak in case of error in 'imx_pinctrl_probe()'"
This reverts commit ba40324261.

After commit 26d8cde526 ("pinctrl: freescale: imx: add shared
input select reg support"). i.MX7D has two iomux controllers
iomuxc and iomuxc-lpsr which share select_input register for
daisy chain settings.
If use 'devm_of_iomap()', when probe the iomuxc-lpsr, will call
devm_request_mem_region() for the region <0x30330000-0x3033ffff>
for the first time. Then, next time when probe the iomuxc, API
devm_platform_ioremap_resource() will also use the API
devm_request_mem_region() for the share region <0x30330000-0x3033ffff>
again, then cause issue, log like below:

[    0.179561] imx7d-pinctrl 302c0000.iomuxc-lpsr: initialized IMX pinctrl driver
[    0.191742] imx7d-pinctrl 30330000.pinctrl: can't request region for resource [mem 0x30330000-0x3033ffff]
[    0.191842] imx7d-pinctrl: probe of 30330000.pinctrl failed with error -16

Fixes: ba40324261 ("pinctrl: freescale: imx: Use 'devm_of_iomap()' to avoid a resource leak in case of error in 'imx_pinctrl_probe()'")
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>
Link: https://lore.kernel.org/r/1591673223-1680-1-git-send-email-haibo.chen@nxp.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2020-06-20 22:04:39 +02:00
..
Kconfig pinctrl: imx: Add imx8dxl driver 2020-04-16 14:21:22 +02:00
Makefile pinctrl: imx: Add imx8dxl driver 2020-04-16 14:21:22 +02:00
pinctrl-imx.c Revert "pinctrl: freescale: imx: Use 'devm_of_iomap()' to avoid a resource leak in case of error in 'imx_pinctrl_probe()'" 2020-06-20 22:04:39 +02:00
pinctrl-imx.h pinctrl: imx8mq: Add suspend/resume ops 2019-04-11 15:41:43 +02:00
pinctrl-imx1-core.c pinctrl: imxl: Fix an error handling path in 'imx1_pinctrl_core_probe()' 2020-06-03 14:30:49 +02:00
pinctrl-imx1.c pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00
pinctrl-imx1.h pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00
pinctrl-imx6dl.c pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00
pinctrl-imx6q.c pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00
pinctrl-imx6sl.c pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00
pinctrl-imx6sll.c pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00
pinctrl-imx6sx.c pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00
pinctrl-imx6ul.c pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00
pinctrl-imx7d.c pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00
pinctrl-imx7ulp.c pinctrl: fsl: imx7ulp: change to use imx legacy binding 2018-11-09 10:54:29 +01:00
pinctrl-imx8dxl.c pinctrl: imx: Add imx8dxl driver 2020-04-16 14:21:22 +02:00
pinctrl-imx8mm.c pinctrl: freescale: Add imx8mm pinctrl driver support 2019-01-30 10:35:22 +01:00
pinctrl-imx8mn.c pinctrl: freescale: Add i.MX8MN pinctrl driver support 2019-06-25 10:40:23 +02:00
pinctrl-imx8mp.c pinctrl: freescale: Add i.MX8MP pinctrl driver support 2020-01-23 15:49:39 +01:00
pinctrl-imx8mq.c pinctrl: imx8mq: Add suspend/resume ops 2019-04-11 15:41:43 +02:00
pinctrl-imx8qm.c pinctrl: imx: add imx8qm driver 2019-01-11 09:25:01 +01:00
pinctrl-imx8qxp.c pinctrl: imx: add imx8qxp driver 2018-11-05 09:33:32 +01:00
pinctrl-imx21.c pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00
pinctrl-imx23.c pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00
pinctrl-imx25.c pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00
pinctrl-imx27.c pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00
pinctrl-imx28.c pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00
pinctrl-imx35.c pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00
pinctrl-imx50.c pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00
pinctrl-imx51.c pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00
pinctrl-imx53.c pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00
pinctrl-mxs.c pinctrl: freescale: mxs: Add of_node_put() before return 2019-08-06 14:52:24 +02:00
pinctrl-mxs.h pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00
pinctrl-scu.c pinctrl: imx: scu: Align imx sc msg structs to 4 2020-02-21 16:33:27 +01:00
pinctrl-vf610.c pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00