diff options
Diffstat (limited to 'drivers/leds/leds-ns2.c')
-rw-r--r-- | drivers/leds/leds-ns2.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/drivers/leds/leds-ns2.c b/drivers/leds/leds-ns2.c index 37b7d0cfe586..2f0a14421a73 100644 --- a/drivers/leds/leds-ns2.c +++ b/drivers/leds/leds-ns2.c | |||
@@ -323,21 +323,10 @@ static struct platform_driver ns2_led_driver = { | |||
323 | .owner = THIS_MODULE, | 323 | .owner = THIS_MODULE, |
324 | }, | 324 | }, |
325 | }; | 325 | }; |
326 | MODULE_ALIAS("platform:leds-ns2"); | ||
327 | |||
328 | static int __init ns2_led_init(void) | ||
329 | { | ||
330 | return platform_driver_register(&ns2_led_driver); | ||
331 | } | ||
332 | 326 | ||
333 | static void __exit ns2_led_exit(void) | 327 | module_platform_driver(ns2_led_driver); |
334 | { | ||
335 | platform_driver_unregister(&ns2_led_driver); | ||
336 | } | ||
337 | |||
338 | module_init(ns2_led_init); | ||
339 | module_exit(ns2_led_exit); | ||
340 | 328 | ||
341 | MODULE_AUTHOR("Simon Guinot <sguinot@lacie.com>"); | 329 | MODULE_AUTHOR("Simon Guinot <sguinot@lacie.com>"); |
342 | MODULE_DESCRIPTION("Network Space v2 LED driver"); | 330 | MODULE_DESCRIPTION("Network Space v2 LED driver"); |
343 | MODULE_LICENSE("GPL"); | 331 | MODULE_LICENSE("GPL"); |
332 | MODULE_ALIAS("platform:leds-ns2"); | ||