From: Axel Lin Date: Sun, 2 Sep 2012 00:08:01 +0000 (+0800) Subject: gpio: adp5588: Use module_i2c_driver X-Git-Tag: v3.7-rc1~143^2~22 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=c8554d32483ef543b9ad3e4349c8d80ea625dc04;p=~emulex%2Finfiniband.git gpio: adp5588: Use module_i2c_driver Signed-off-by: Axel Lin Signed-off-by: Linus Walleij --- diff --git a/drivers/gpio/gpio-adp5588.c b/drivers/gpio/gpio-adp5588.c index ae5d7f12ce6..eeedad42913 100644 --- a/drivers/gpio/gpio-adp5588.c +++ b/drivers/gpio/gpio-adp5588.c @@ -483,19 +483,7 @@ static struct i2c_driver adp5588_gpio_driver = { .id_table = adp5588_gpio_id, }; -static int __init adp5588_gpio_init(void) -{ - return i2c_add_driver(&adp5588_gpio_driver); -} - -module_init(adp5588_gpio_init); - -static void __exit adp5588_gpio_exit(void) -{ - i2c_del_driver(&adp5588_gpio_driver); -} - -module_exit(adp5588_gpio_exit); +module_i2c_driver(adp5588_gpio_driver); MODULE_AUTHOR("Michael Hennerich "); MODULE_DESCRIPTION("GPIO ADP5588 Driver");