[PATCH 2/3] gpio: mxc: lower level of gpio_mxc_init() initcall
Vladimir Zapolskiy
vladimir_zapolskiy at mentor.com
Fri Aug 19 15:10:14 PDT 2016
From: Deepak Das <deepak_das at mentor.com>
gpio-mxc probe should be called after imx pinctrl driver to make
sure that gpio-ranges are mapped to the corresponding pins of pin
controller.
This commit changes the initcall level of gpio-mxc driver from
postcore to device level.
Signed-off-by: Deepak Das <deepak_das at mentor.com>
Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy at mentor.com>
---
drivers/gpio/gpio-mxc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpio/gpio-mxc.c b/drivers/gpio/gpio-mxc.c
index 1b342a3842c8..1f0deb7d3380 100644
--- a/drivers/gpio/gpio-mxc.c
+++ b/drivers/gpio/gpio-mxc.c
@@ -510,7 +510,7 @@ static int __init gpio_mxc_init(void)
{
return platform_driver_register(&mxc_gpio_driver);
}
-postcore_initcall(gpio_mxc_init);
+device_initcall(gpio_mxc_init);
MODULE_AUTHOR("Freescale Semiconductor, "
"Daniel Mack <danielncaiaq.de>, "
--
2.8.1
More information about the linux-arm-kernel
mailing list