From: Pratyush Anand Date: Wed, 29 Feb 2012 06:57:46 +0000 (+0530) Subject: i2c: designware: dw_i2c_init_driver as subsys initcall X-Git-Tag: v3.4-rc1~113^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=104522806a7d9d47c34f425dee2bcd7f1ee5613e;p=thirdparty%2Fkernel%2Flinux.git i2c: designware: dw_i2c_init_driver as subsys initcall There are few drivers which are available on i2c bus but have been initialized with subsys_initcall. Also as I2C is a bus driver, it should be available as early as possible. Signed-off-by: Pratyush Anand Signed-off-by: Viresh Kumar [wsa: Slightly updated the commit message] Signed-off-by: Wolfram Sang --- diff --git a/drivers/i2c/busses/i2c-designware-platdrv.c b/drivers/i2c/busses/i2c-designware-platdrv.c index 5244c4724df7a..4ba589ab86140 100644 --- a/drivers/i2c/busses/i2c-designware-platdrv.c +++ b/drivers/i2c/busses/i2c-designware-platdrv.c @@ -214,7 +214,7 @@ static int __init dw_i2c_init_driver(void) { return platform_driver_probe(&dw_i2c_driver, dw_i2c_probe); } -module_init(dw_i2c_init_driver); +subsys_initcall(dw_i2c_init_driver); static void __exit dw_i2c_exit_driver(void) {