summaryrefslogtreecommitdiff
path: root/drivers/gpio
diff options
context:
space:
mode:
authorEnrico Weigelt <info@metux.net>2019-06-24 08:40:34 +0300
committerLinus Walleij <linus.walleij@linaro.org>2019-06-27 17:56:51 +0300
commitf79047b109119b9cc411b079d1aee6820b6afeb6 (patch)
tree90450a35c8a31d0fd24d6d4c1d35bca1708112d0 /drivers/gpio
parent8f3fd89593377d15df88ad26dcf48318d8c9896f (diff)
downloadlinux-f79047b109119b9cc411b079d1aee6820b6afeb6.tar.xz
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>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpio-siox.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/gpio/gpio-siox.c b/drivers/gpio/gpio-siox.c
index 571b2a81c6de..fb4e318ab028 100644
--- a/drivers/gpio/gpio-siox.c
+++ b/drivers/gpio/gpio-siox.c
@@ -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");