[PATCH v3 4/6] syscon: Decrease driver registration priority
Andrey Smirnov
andrew.smirnov at gmail.com
Mon May 16 09:45:59 PDT 2016
A number of devices on i.MX6 list "syscon" as second compatibility
string, among them, most importantly, is "iomuxv3" pinmux driver, which
gets probed at "postcore_initcall". Probing this driver at
"core_initcall" results in "syscon" driver usurping pinmux device and
preventing "iomuxv3" driver from loading and correctly initializing
pinmux of the system (which in turn results in a lot of sadness).
Moving this driver to be initialized at "device_initcall" time resolves
the issue.
Signed-off-by: Andrey Smirnov <andrew.smirnov at gmail.com>
---
drivers/mfd/syscon.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mfd/syscon.c b/drivers/mfd/syscon.c
index 9589a03..ee62da0 100644
--- a/drivers/mfd/syscon.c
+++ b/drivers/mfd/syscon.c
@@ -111,7 +111,7 @@ static int __init syscon_init(void)
{
return platform_driver_register(&syscon_driver);
}
-core_initcall(syscon_init);
+device_initcall(syscon_init);
MODULE_AUTHOR("Dong Aisheng <dong.aisheng at linaro.org>");
MODULE_DESCRIPTION("System Control driver");
--
2.5.5
More information about the barebox
mailing list