mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 01:21:58 +00:00
rtc: convert rtc spi drivers to module_spi_driver
Factor out some boilerplate code for spi driver registration into module_spi_driver. Signed-off-by: Axel Lin <axel.lin@gmail.com> Cc: Mark Jackson <mpfj@mimc.co.uk> Cc: Dennis Aberilla <denzzzhome@yahoo.com> Cc: Nikolaus Voss <n.voss@weinmann.de> Cc: "Kim B. Heino" <Kim.Heino@bluegiga.com> Cc: Raphael Assenat <raph@raphnet.net> Cc: Chris Verges <chrisv@cyberswitching.com> Cc: Magnus Damm <damm@opensource.se> Cc: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Cc: Alessandro Zummo <a.zummo@towertech.it> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
ee6c54ca64
commit
109e941843
9 changed files with 9 additions and 103 deletions
|
@ -160,17 +160,7 @@ static struct spi_driver max6902_driver = {
|
|||
.remove = __devexit_p(max6902_remove),
|
||||
};
|
||||
|
||||
static __init int max6902_init(void)
|
||||
{
|
||||
return spi_register_driver(&max6902_driver);
|
||||
}
|
||||
module_init(max6902_init);
|
||||
|
||||
static __exit void max6902_exit(void)
|
||||
{
|
||||
spi_unregister_driver(&max6902_driver);
|
||||
}
|
||||
module_exit(max6902_exit);
|
||||
module_spi_driver(max6902_driver);
|
||||
|
||||
MODULE_DESCRIPTION ("max6902 spi RTC driver");
|
||||
MODULE_AUTHOR ("Raphael Assenat");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue