summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-zynq.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2015-06-17 17:51:41 +0900
committerLinus Walleij <linus.walleij@linaro.org>2015-07-16 00:11:02 +0200
commit80d2bf55a1257a277a808128f377ac69216b6587 (patch)
tree4a4f39135d61dbe71ec954fd79afa9d0fa7903ad /drivers/gpio/gpio-zynq.c
parent7c50181b69ce65b0a7db6936aca26f86b70e4436 (diff)
downloadlwn-80d2bf55a1257a277a808128f377ac69216b6587.tar.gz
lwn-80d2bf55a1257a277a808128f377ac69216b6587.zip
gpio: zynq: add missing module_exit function
This driver is tristate, so it should be cleanable. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Tested-by: Michal Simek <michal.simek@xilinx.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-zynq.c')
-rw-r--r--drivers/gpio/gpio-zynq.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpio/gpio-zynq.c b/drivers/gpio/gpio-zynq.c
index 2e87c4b8da26..399c4be9e63c 100644
--- a/drivers/gpio/gpio-zynq.c
+++ b/drivers/gpio/gpio-zynq.c
@@ -781,6 +781,12 @@ static int __init zynq_gpio_init(void)
}
postcore_initcall(zynq_gpio_init);
+static void __exit zynq_gpio_exit(void)
+{
+ platform_driver_unregister(&zynq_gpio_driver);
+}
+module_exit(zynq_gpio_exit);
+
MODULE_AUTHOR("Xilinx Inc.");
MODULE_DESCRIPTION("Zynq GPIO driver");
MODULE_LICENSE("GPL");