diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2015-03-27 21:47:01 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-04-01 17:22:05 +0200 |
commit | 4558e09469fe376752a8d3ba097a0cfe42691b72 (patch) | |
tree | ecf5c757816eff3b844f66f3eae89202a926d0f2 /arch/mips/mti-sead3 | |
parent | 01f7ab34325e76301915d5a4604834c5e2a91e74 (diff) |
MIPS: SEAD3: Convert LED driver to module_platform_driver.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/mti-sead3')
-rw-r--r-- | arch/mips/mti-sead3/leds-sead3.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/arch/mips/mti-sead3/leds-sead3.c b/arch/mips/mti-sead3/leds-sead3.c index 3346c31f4f02..1d1e8b331925 100644 --- a/arch/mips/mti-sead3/leds-sead3.c +++ b/arch/mips/mti-sead3/leds-sead3.c @@ -71,18 +71,7 @@ static struct platform_driver sead3_led_driver = { }, }; -static int __init sead3_led_init(void) -{ - return platform_driver_register(&sead3_led_driver); -} - -static void __exit sead3_led_exit(void) -{ - platform_driver_unregister(&sead3_led_driver); -} - -module_init(sead3_led_init); -module_exit(sead3_led_exit); +module_platform_driver(sead3_led_driver); MODULE_AUTHOR("Kristian Kielhofner <kris@krisk.org>"); MODULE_DESCRIPTION("SEAD3 LED driver"); |