From: Ralf Baechle Date: Fri, 27 Mar 2015 20:47:01 +0000 (+0100) Subject: MIPS: SEAD3: Convert LED driver to module_platform_driver. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4558e09469fe376752a8d3ba097a0cfe42691b72;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git MIPS: SEAD3: Convert LED driver to module_platform_driver. Signed-off-by: Ralf Baechle --- 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 "); MODULE_DESCRIPTION("SEAD3 LED driver");