MIPS: SEAD3: Convert LED driver to module_platform_driver.
authorRalf Baechle <ralf@linux-mips.org>
Fri, 27 Mar 2015 20:47:01 +0000 (21:47 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 1 Apr 2015 15:22:05 +0000 (17:22 +0200)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mti-sead3/leds-sead3.c

index 3346c31f4f022b8f731ff64985b88ec50e125789..1d1e8b3319251f5f6e944c74901530dc39889d5c 100644 (file)
@@ -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");