提交 c8554d32 编写于 作者: A Axel Lin 提交者: Linus Walleij

gpio: adp5588: Use module_i2c_driver

Signed-off-by: NAxel Lin <axel.lin@gmail.com>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 f3fe077b
......@@ -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 <hennerich@blackfin.uclinux.org>");
MODULE_DESCRIPTION("GPIO ADP5588 Driver");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册