summaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2016-05-16 09:45:59 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2016-05-18 07:47:51 +0200
commitc203958f3bbf25fc3d612497057b962e96ad1c52 (patch)
tree1f80c1112ec7cd42ab8fdf15c055e137d37a08f5 /drivers/mfd
parenta6c67f15ac08aa74faaca7936b914a147299e924 (diff)
downloadbarebox-c203958f3bbf25fc3d612497057b962e96ad1c52.tar.gz
barebox-c203958f3bbf25fc3d612497057b962e96ad1c52.tar.xz
syscon: Decrease driver registration priority
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@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/syscon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/syscon.c b/drivers/mfd/syscon.c
index 9589a03f16..ee62da0a62 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@linaro.org>");
MODULE_DESCRIPTION("System Control driver");