gpio: adp5588: Use module_i2c_driver
PATCH 1/1 gpio: adp5588: Use module_i2c_driver
Signed-off-by Axel Lin <[email protected]>
--- drivers/gpio/gpio-adp5588.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-)
drivers/gpio/gpio-adp5588.c +1 -13
@@ -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 <[email protected]>" );MODULE_DESCRIPTION ("GPIO ADP5588 Driver" );
Signature · 1 line
1.7.9.5
Linus Walleij
AppliedQuoted 1 line · Axel Lin
Signed-off-by Axel Lin <[email protected]>
Applied, thanks!
Linus Walleij