Commit c8554d32 authored by Axel Lin's avatar Axel Lin Committed by Linus Walleij

gpio: adp5588: Use module_i2c_driver

Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent f3fe077b
...@@ -483,19 +483,7 @@ static struct i2c_driver adp5588_gpio_driver = { ...@@ -483,19 +483,7 @@ static struct i2c_driver adp5588_gpio_driver = {
.id_table = adp5588_gpio_id, .id_table = adp5588_gpio_id,
}; };
static int __init adp5588_gpio_init(void) module_i2c_driver(adp5588_gpio_driver);
{
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_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>");
MODULE_DESCRIPTION("GPIO ADP5588 Driver"); MODULE_DESCRIPTION("GPIO ADP5588 Driver");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment