mfd: max14577: Use module_init() instead of subsys_initcall()
authorJavier Martinez Canillas <javier@osg.samsung.com>
Thu, 26 May 2016 16:32:19 +0000 (12:32 -0400)
committerLee Jones <lee.jones@linaro.org>
Wed, 29 Jun 2016 09:14:43 +0000 (10:14 +0100)
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>
drivers/mfd/max14577.c

index 2280b3f..6c24512 100644 (file)
@@ -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)
 {