diff options
Diffstat (limited to 'drivers/leds/leds-gpio.c')
-rw-r--r-- | drivers/leds/leds-gpio.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/drivers/leds/leds-gpio.c b/drivers/leds/leds-gpio.c index 399a86f2013a..7df74cb97e70 100644 --- a/drivers/leds/leds-gpio.c +++ b/drivers/leds/leds-gpio.c | |||
@@ -293,21 +293,9 @@ static struct platform_driver gpio_led_driver = { | |||
293 | }, | 293 | }, |
294 | }; | 294 | }; |
295 | 295 | ||
296 | MODULE_ALIAS("platform:leds-gpio"); | 296 | module_platform_driver(gpio_led_driver); |
297 | |||
298 | static int __init gpio_led_init(void) | ||
299 | { | ||
300 | return platform_driver_register(&gpio_led_driver); | ||
301 | } | ||
302 | |||
303 | static void __exit gpio_led_exit(void) | ||
304 | { | ||
305 | platform_driver_unregister(&gpio_led_driver); | ||
306 | } | ||
307 | |||
308 | module_init(gpio_led_init); | ||
309 | module_exit(gpio_led_exit); | ||
310 | 297 | ||
311 | MODULE_AUTHOR("Raphael Assenat <raph@8d.com>, Trent Piepho <tpiepho@freescale.com>"); | 298 | MODULE_AUTHOR("Raphael Assenat <raph@8d.com>, Trent Piepho <tpiepho@freescale.com>"); |
312 | MODULE_DESCRIPTION("GPIO LED driver"); | 299 | MODULE_DESCRIPTION("GPIO LED driver"); |
313 | MODULE_LICENSE("GPL"); | 300 | MODULE_LICENSE("GPL"); |
301 | MODULE_ALIAS("platform:leds-gpio"); | ||