Does this patch work for you? I can't test but made a similar one recently... === snip Subject: [PATCH] i2c-iop3xx: 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@xxxxxxxxxxxxxx> --- drivers/i2c/busses/i2c-iop3xx.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-iop3xx.c b/drivers/i2c/busses/i2c-iop3xx.c index a75c75e..922fa3f 100644 --- a/drivers/i2c/busses/i2c-iop3xx.c +++ b/drivers/i2c/busses/i2c-iop3xx.c @@ -535,6 +535,7 @@ i2c_iop3xx_init (void) { return platform_driver_register(&iop3xx_i2c_driver); } +subsys_initcall(i2c_iop3xx_init); static void __exit i2c_iop3xx_exit (void) @@ -542,9 +543,7 @@ i2c_iop3xx_exit (void) platform_driver_unregister(&iop3xx_i2c_driver); return; } - -module_init (i2c_iop3xx_init); -module_exit (i2c_iop3xx_exit); +module_exit(i2c_iop3xx_exit); MODULE_AUTHOR("D-TACQ Solutions Ltd <www.d-tacq.com>"); MODULE_DESCRIPTION("IOP3xx iic algorithm and driver"); -- 1.6.3.3 -- Pengutronix e.K. | Wolfram Sang | Industrial Linux Solutions | http://www.pengutronix.de/ |
Attachment:
signature.asc
Description: Digital signature