diff options
Diffstat (limited to 'drivers/gpio/pcf857x.c')
-rw-r--r-- | drivers/gpio/pcf857x.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpio/pcf857x.c b/drivers/gpio/pcf857x.c index fc9c6ae739ee..4bc2070dd4a1 100644 --- a/drivers/gpio/pcf857x.c +++ b/drivers/gpio/pcf857x.c | |||
@@ -351,7 +351,10 @@ static int __init pcf857x_init(void) | |||
351 | { | 351 | { |
352 | return i2c_add_driver(&pcf857x_driver); | 352 | return i2c_add_driver(&pcf857x_driver); |
353 | } | 353 | } |
354 | module_init(pcf857x_init); | 354 | /* register after i2c postcore initcall and before |
355 | * subsys initcalls that may rely on these GPIOs | ||
356 | */ | ||
357 | subsys_initcall(pcf857x_init); | ||
355 | 358 | ||
356 | static void __exit pcf857x_exit(void) | 359 | static void __exit pcf857x_exit(void) |
357 | { | 360 | { |