From: Peter Meerwald Date: Tue, 3 Jul 2012 08:03:38 +0000 (+0800) Subject: leds: convert tca6507 driver to module_i2c_driver() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2e9117672db9a9fa4339eb6c58cb76018e6b579e;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git leds: convert tca6507 driver to module_i2c_driver() Signed-off-by: Peter Meerwald Cc: NeilBrown Signed-off-by: Bryan Wu --- diff --git a/drivers/leds/leds-tca6507.c b/drivers/leds/leds-tca6507.c index 6c1c14f31635..f74a45a49f47 100644 --- a/drivers/leds/leds-tca6507.c +++ b/drivers/leds/leds-tca6507.c @@ -758,18 +758,7 @@ static struct i2c_driver tca6507_driver = { .id_table = tca6507_id, }; -static int __init tca6507_leds_init(void) -{ - return i2c_add_driver(&tca6507_driver); -} - -static void __exit tca6507_leds_exit(void) -{ - i2c_del_driver(&tca6507_driver); -} - -module_init(tca6507_leds_init); -module_exit(tca6507_leds_exit); +module_i2c_driver(tca6507_driver); MODULE_AUTHOR("NeilBrown "); MODULE_DESCRIPTION("TCA6507 LED/GPO driver");