mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-11 00:08:50 +00:00
gpio: siox: Use module_siox_driver()
Reduce driver init boilerplate by using the new module_siox_driver() macro. Signed-off-by: Enrico Weigelt <info@metux.net> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
8f3fd89593
commit
f79047b109
@ -275,18 +275,7 @@ static struct siox_driver gpio_siox_driver = {
|
||||
.name = "gpio-siox",
|
||||
},
|
||||
};
|
||||
|
||||
static int __init gpio_siox_init(void)
|
||||
{
|
||||
return siox_driver_register(&gpio_siox_driver);
|
||||
}
|
||||
module_init(gpio_siox_init);
|
||||
|
||||
static void __exit gpio_siox_exit(void)
|
||||
{
|
||||
siox_driver_unregister(&gpio_siox_driver);
|
||||
}
|
||||
module_exit(gpio_siox_exit);
|
||||
module_siox_driver(gpio_siox_driver);
|
||||
|
||||
MODULE_AUTHOR("Uwe Kleine-Koenig <u.kleine-koenig@pengutronix.de>");
|
||||
MODULE_DESCRIPTION("SIOX gpio driver");
|
||||
|
Loading…
x
Reference in New Issue
Block a user