]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/gpio/pcf857x.c
gpio: i2c expanders use subsys_init
[linux-2.6-omap-h63xx.git] / drivers / gpio / pcf857x.c
index fc9c6ae739ee74f8f77b8836bd5e7894001e5d9d..4bc2070dd4a1010b498d63b96926e0cdbec69111 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)
 {