1
0
Fork 0

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>
hifive-unleashed-5.1
Masahiro Yamada 2015-06-17 17:51:41 +09:00 committed by Linus Walleij
parent 7c50181b69
commit 80d2bf55a1
1 changed files with 6 additions and 0 deletions

View File

@ -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");