X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=drivers%2Fgpio%2Fpcf857x.c;h=4bc2070dd4a1010b498d63b96926e0cdbec69111;hb=9779a8325a9bbf4ccd3853e0e4064984cf9da9c9;hp=fc9c6ae739ee74f8f77b8836bd5e7894001e5d9d;hpb=e4ddcb0a6bf04d53ce77b4eb87bbbb32c4261d11;p=linux-2.6-omap-h63xx.git diff --git a/drivers/gpio/pcf857x.c b/drivers/gpio/pcf857x.c index fc9c6ae739e..4bc2070dd4a 100644 --- a/drivers/gpio/pcf857x.c +++ b/drivers/gpio/pcf857x.c @@ -351,7 +351,10 @@ static int __init pcf857x_init(void) { return i2c_add_driver(&pcf857x_driver); } -module_init(pcf857x_init); +/* register after i2c postcore initcall and before + * subsys initcalls that may rely on these GPIOs + */ +subsys_initcall(pcf857x_init); static void __exit pcf857x_exit(void) {