aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/max7301.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpio/max7301.c')
-rw-r--r--drivers/gpio/max7301.c6
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 */
331subsys_initcall(max7301_init);
328 332
329static void __exit max7301_exit(void) 333static void __exit max7301_exit(void)
330{ 334{
331 spi_unregister_driver(&max7301_driver); 335 spi_unregister_driver(&max7301_driver);
332} 336}
333
334module_init(max7301_init);
335module_exit(max7301_exit); 337module_exit(max7301_exit);
336 338
337MODULE_AUTHOR("Juergen Beisert"); 339MODULE_AUTHOR("Juergen Beisert");