gpio: i2c expanders use subsys_init
[safe/jmp/linux-2.6] / drivers / gpio / pcf857x.c
index fc9c6ae..4bc2070 100644 (file)
@@ -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)
 {