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) { return spi_register_driver(&max7301_driver); } +/* register after spi postcore initcall and before + * subsys initcalls that may rely on these GPIOs + */ +subsys_initcall(max7301_init); static void __exit max7301_exit(void) { spi_unregister_driver(&max7301_driver); } - -module_init(max7301_init); module_exit(max7301_exit); MODULE_AUTHOR("Juergen Beisert"); |