Skip to content

Commit 5d3f333

Browse files
Wolfram SangBen Dooks
authored andcommitted
[PATCH] i2c-imx: make bus available early
As I2C is used by PMICs also, make the busses available early via subsys_initcall(). Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
1 parent b0999cc commit 5d3f333

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/i2c/busses/i2c-imx.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -609,13 +609,12 @@ static int __init i2c_adap_imx_init(void)
609609
{
610610
return platform_driver_probe(&i2c_imx_driver, i2c_imx_probe);
611611
}
612+
subsys_initcall(i2c_adap_imx_init);
612613

613614
static void __exit i2c_adap_imx_exit(void)
614615
{
615616
platform_driver_unregister(&i2c_imx_driver);
616617
}
617-
618-
module_init(i2c_adap_imx_init);
619618
module_exit(i2c_adap_imx_exit);
620619

621620
MODULE_LICENSE("GPL");

0 commit comments

Comments
 (0)