diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-09-01 20:08:01 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2012-09-04 03:24:10 -0400 |
commit | c8554d32483ef543b9ad3e4349c8d80ea625dc04 (patch) | |
tree | fb600d112979e2fe633086fc1d662e6a0f5624b1 | |
parent | f3fe077b2b7fb9c9b354a85a2be7fc8ad453d246 (diff) |
gpio: adp5588: Use module_i2c_driver
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r-- | drivers/gpio/gpio-adp5588.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/gpio/gpio-adp5588.c b/drivers/gpio/gpio-adp5588.c index ae5d7f12ce66..eeedad42913e 100644 --- a/drivers/gpio/gpio-adp5588.c +++ b/drivers/gpio/gpio-adp5588.c | |||
@@ -483,19 +483,7 @@ static struct i2c_driver adp5588_gpio_driver = { | |||
483 | .id_table = adp5588_gpio_id, | 483 | .id_table = adp5588_gpio_id, |
484 | }; | 484 | }; |
485 | 485 | ||
486 | static int __init adp5588_gpio_init(void) | 486 | module_i2c_driver(adp5588_gpio_driver); |
487 | { | ||
488 | return i2c_add_driver(&adp5588_gpio_driver); | ||
489 | } | ||
490 | |||
491 | module_init(adp5588_gpio_init); | ||
492 | |||
493 | static void __exit adp5588_gpio_exit(void) | ||
494 | { | ||
495 | i2c_del_driver(&adp5588_gpio_driver); | ||
496 | } | ||
497 | |||
498 | module_exit(adp5588_gpio_exit); | ||
499 | 487 | ||
500 | MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); | 488 | MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); |
501 | MODULE_DESCRIPTION("GPIO ADP5588 Driver"); | 489 | MODULE_DESCRIPTION("GPIO ADP5588 Driver"); |