leds: Use module_platform_driver() in leds-max8997.c file
module_platform_driver() makes the code simpler. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
This commit is contained in:
parent
2e9117672d
commit
7fafefb86e
1 changed files with 1 additions and 11 deletions
|
@ -354,17 +354,7 @@ static struct platform_driver max8997_led_driver = {
|
||||||
.remove = __devexit_p(max8997_led_remove),
|
.remove = __devexit_p(max8997_led_remove),
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init max8997_led_init(void)
|
module_platform_driver(max8997_led_driver);
|
||||||
{
|
|
||||||
return platform_driver_register(&max8997_led_driver);
|
|
||||||
}
|
|
||||||
module_init(max8997_led_init);
|
|
||||||
|
|
||||||
static void __exit max8997_led_exit(void)
|
|
||||||
{
|
|
||||||
platform_driver_unregister(&max8997_led_driver);
|
|
||||||
}
|
|
||||||
module_exit(max8997_led_exit);
|
|
||||||
|
|
||||||
MODULE_AUTHOR("Donggeun Kim <dg77.kim@samsung.com>");
|
MODULE_AUTHOR("Donggeun Kim <dg77.kim@samsung.com>");
|
||||||
MODULE_DESCRIPTION("MAX8997 LED driver");
|
MODULE_DESCRIPTION("MAX8997 LED driver");
|
||||||
|
|
Loading…
Add table
Reference in a new issue