projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c50181
)
gpio: zynq: add missing module_exit function
author
Masahiro Yamada
<yamada.masahiro@socionext.com>
Wed, 17 Jun 2015 08:51:41 +0000
(17:51 +0900)
committer
Linus Walleij
<linus.walleij@linaro.org>
Wed, 15 Jul 2015 22:11:02 +0000
(
00:11
+0200)
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>
drivers/gpio/gpio-zynq.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpio-zynq.c
b/drivers/gpio/gpio-zynq.c
index 2e87c4b8da26d5336164359a6a6e27f0a32de68c..399c4be9e63cb3e5bf48c9b4c95a659f1d7a5100 100644
(file)
--- 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");