diff options
author | Felipe Balbi <balbi@ti.com> | 2014-10-13 15:50:08 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-10-28 16:59:30 +0100 |
commit | 9067bbe5989c39bd4d482edfd4d38ad99d5b081f (patch) | |
tree | 1fae26d355f0c3f48056a0e1f9f447dc581d52b2 /drivers | |
parent | 1f2b045205ce9f54babf912c9d875d7b013e4660 (diff) |
pinctrl: baytrail: add missing module removal support
pinctrl-baytrail driver provides a proper ->remove()
method on its platform_driver definition, however there's
no way, currently, to unload the driver due to missing
module_exit(). This patch adds module_exit().
Signed-off-by: Felipe Balbi <balbi@ti.com>
Acked-by: David Cohen <david.a.cohen@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/pinctrl/pinctrl-baytrail.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-baytrail.c b/drivers/pinctrl/pinctrl-baytrail.c index e12e5b07f6d7..3ece00164523 100644 --- a/drivers/pinctrl/pinctrl-baytrail.c +++ b/drivers/pinctrl/pinctrl-baytrail.c @@ -612,5 +612,10 @@ static int __init byt_gpio_init(void) { return platform_driver_register(&byt_gpio_driver); } - subsys_initcall(byt_gpio_init); + +static void __exit byt_gpio_exit(void) +{ + platform_driver_unregister(&byt_gpio_driver); +} +module_exit(byt_gpio_exit); |