diff options
author | Peter Meerwald <p.meerwald@bct-electronic.com> | 2012-07-03 04:03:38 -0400 |
---|---|---|
committer | Bryan Wu <bryan.wu@canonical.com> | 2012-07-23 19:52:36 -0400 |
commit | 2e9117672db9a9fa4339eb6c58cb76018e6b579e (patch) | |
tree | 0a578f1683377068933a388c994e557f28030ca7 /drivers/leds/leds-tca6507.c | |
parent | 7d84f66f22cb511b7cb7602b2a9dab20c8906da7 (diff) |
leds: convert tca6507 driver to module_i2c_driver()
Signed-off-by: Peter Meerwald <p.meerwald@bct-electronic.com>
Cc: NeilBrown <neilb@suse.de>
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
Diffstat (limited to 'drivers/leds/leds-tca6507.c')
-rw-r--r-- | drivers/leds/leds-tca6507.c | 13 |
1 files changed, 1 insertions, 12 deletions
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 = { | |||
758 | .id_table = tca6507_id, | 758 | .id_table = tca6507_id, |
759 | }; | 759 | }; |
760 | 760 | ||
761 | static int __init tca6507_leds_init(void) | 761 | module_i2c_driver(tca6507_driver); |
762 | { | ||
763 | return i2c_add_driver(&tca6507_driver); | ||
764 | } | ||
765 | |||
766 | static void __exit tca6507_leds_exit(void) | ||
767 | { | ||
768 | i2c_del_driver(&tca6507_driver); | ||
769 | } | ||
770 | |||
771 | module_init(tca6507_leds_init); | ||
772 | module_exit(tca6507_leds_exit); | ||
773 | 762 | ||
774 | MODULE_AUTHOR("NeilBrown <neilb@suse.de>"); | 763 | MODULE_AUTHOR("NeilBrown <neilb@suse.de>"); |
775 | MODULE_DESCRIPTION("TCA6507 LED/GPO driver"); | 764 | MODULE_DESCRIPTION("TCA6507 LED/GPO driver"); |