Skip to content

Commit

Permalink
mfd: Fix ab4500 compilation warnings
Browse files Browse the repository at this point in the history
When building the driver as a module, module_exit was missing, and
subsys_initcall_sync() is not defined.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Samuel Ortiz committed Dec 13, 2009
1 parent 0c41839 commit 956266d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/mfd/ab4500-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ static void __exit ab4500_exit(void)
spi_unregister_driver(&ab4500_driver);
}

subsys_initcall_sync(ab4500_init);
subsys_initcall(ab4500_init);
module_exit(ab4500_exit);

MODULE_AUTHOR("Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com");
MODULE_DESCRIPTION("AB4500 core driver");
Expand Down

0 comments on commit 956266d

Please sign in to comment.