diff options
Diffstat (limited to 'drivers/gpio/max7301.c')
-rw-r--r-- | drivers/gpio/max7301.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpio/max7301.c b/drivers/gpio/max7301.c index 39c795ad8312..1b5ad97b9e5b 100644 --- a/drivers/gpio/max7301.c +++ b/drivers/gpio/max7301.c | |||
@@ -325,13 +325,15 @@ static int __init max7301_init(void) | |||
325 | { | 325 | { |
326 | return spi_register_driver(&max7301_driver); | 326 | return spi_register_driver(&max7301_driver); |
327 | } | 327 | } |
328 | /* register after spi postcore initcall and before | ||
329 | * subsys initcalls that may rely on these GPIOs | ||
330 | */ | ||
331 | subsys_initcall(max7301_init); | ||
328 | 332 | ||
329 | static void __exit max7301_exit(void) | 333 | static void __exit max7301_exit(void) |
330 | { | 334 | { |
331 | spi_unregister_driver(&max7301_driver); | 335 | spi_unregister_driver(&max7301_driver); |
332 | } | 336 | } |
333 | |||
334 | module_init(max7301_init); | ||
335 | module_exit(max7301_exit); | 337 | module_exit(max7301_exit); |
336 | 338 | ||
337 | MODULE_AUTHOR("Juergen Beisert"); | 339 | MODULE_AUTHOR("Juergen Beisert"); |