summaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javier@osg.samsung.com>2016-05-26 18:32:19 +0200
committerLee Jones <lee.jones@linaro.org>2016-06-29 11:14:43 +0200
commit9961bf1876c08d3a290b0e69344c64a8cbbf8a68 (patch)
treebcf6e77e2be1f3a7ec7f752e7066d5bf2f8439be /drivers/mfd
parentmfd: arizona: Remove some duplicate defines (diff)
downloadlinux-9961bf1876c08d3a290b0e69344c64a8cbbf8a68.tar.xz
linux-9961bf1876c08d3a290b0e69344c64a8cbbf8a68.zip
mfd: max14577: Use module_init() instead of subsys_initcall()
The driver's init function is called at subsys init call level but the dependencies provided by the driver are looked up by drivers that have probe deferral support, so manual ordering of init calls isn't needed. Suggested-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/max14577.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/max14577.c b/drivers/mfd/max14577.c
index 2280b3fdcf68..6c245128ab2e 100644
--- a/drivers/mfd/max14577.c
+++ b/drivers/mfd/max14577.c
@@ -561,7 +561,7 @@ static int __init max14577_i2c_init(void)
return i2c_add_driver(&max14577_i2c_driver);
}
-subsys_initcall(max14577_i2c_init);
+module_init(max14577_i2c_init);
static void __exit max14577_i2c_exit(void)
{