mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
leds: convert leds-dac124s085 to module_spi_driver
Factor out some boilerplate code for spi driver registration into module_spi_driver. Signed-off-by: Axel Lin <[email protected]> Cc: Haojian Zhuang <[email protected]> Cc: Mark Brown <[email protected]> Cc: Richard Purdie <[email protected]> Cc: Michael Hennerich <[email protected]> Cc: Mike Rapoport <[email protected]> Acked-by: Guennadi Liakhovetski <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
09a0d183ef
commit
19b955768b
1 changed files with 1 additions and 12 deletions
|
|
@ -131,18 +131,7 @@ static struct spi_driver dac124s085_driver = {
|
|||
},
|
||||
};
|
||||
|
||||
static int __init dac124s085_leds_init(void)
|
||||
{
|
||||
return spi_register_driver(&dac124s085_driver);
|
||||
}
|
||||
|
||||
static void __exit dac124s085_leds_exit(void)
|
||||
{
|
||||
spi_unregister_driver(&dac124s085_driver);
|
||||
}
|
||||
|
||||
module_init(dac124s085_leds_init);
|
||||
module_exit(dac124s085_leds_exit);
|
||||
module_spi_driver(dac124s085_driver);
|
||||
|
||||
MODULE_AUTHOR("Guennadi Liakhovetski <[email protected]>");
|
||||
MODULE_DESCRIPTION("DAC124S085 LED driver");
|
||||
|
|
|
|||
Loading…
Reference in a new issue