Skip to contentSkip to conversation

gpio: adp5588: Use module_i2c_driver

PATCH Applied Axel Lin 2 participants 2 messages Sep 2, 2012 – Sep 4, 2012 GPIO

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 gpio: adp5588: Use module_i2c_driver

---
 drivers/gpio/gpio-adp5588.c |   14 +-------------
 1 file changed, 1 insertion(+), 13 deletions(-)
drivers/gpio/gpio-adp5588.c +1 -13
index ae5d7f1..eeedad4 100644
@@ -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