diff options
author | Guillaume La Roque <glaroque@baylibre.com> | 2022-11-07 18:29:21 +0100 |
---|---|---|
committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2022-11-10 15:24:34 +0100 |
commit | 8dab99c9eab3162bfb4326c35579a3388dbf68f2 (patch) | |
tree | 3e78b4aa7ebe2239ed9f84e11fc3b44d05a7082e /drivers/gpio/gpio-davinci.c | |
parent | 27043a7d500c4a3debb899c28bbf492492f64e58 (diff) | |
download | lwn-8dab99c9eab3162bfb4326c35579a3388dbf68f2.tar.gz lwn-8dab99c9eab3162bfb4326c35579a3388dbf68f2.zip |
gpio: davinci: add support of module build
Added module build support for the davinci gpio driver
Signed-off-by: Guillaume La Roque <glaroque@baylibre.com>
Signed-off-by: Nicolas Frayer <nfrayer@baylibre.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-davinci.c')
-rw-r--r-- | drivers/gpio/gpio-davinci.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/gpio/gpio-davinci.c b/drivers/gpio/gpio-davinci.c index 1018860c83c2..fa51a91afa54 100644 --- a/drivers/gpio/gpio-davinci.c +++ b/drivers/gpio/gpio-davinci.c @@ -727,3 +727,14 @@ static int __init davinci_gpio_drv_reg(void) return platform_driver_register(&davinci_gpio_driver); } postcore_initcall(davinci_gpio_drv_reg); + +static void __exit davinci_gpio_exit(void) +{ + platform_driver_unregister(&davinci_gpio_driver); +} +module_exit(davinci_gpio_exit); + +MODULE_AUTHOR("Jan Kotas <jank@cadence.com>"); +MODULE_DESCRIPTION("DAVINCI GPIO driver"); +MODULE_LICENSE("GPL"); +MODULE_ALIAS("platform:gpio-davinci"); |