Skip to content

Commit 8dab99c

Browse files
glaroqueBartosz Golaszewski
authored andcommitted
gpio: davinci: add support of module build
Added module build support for the davinci gpio driver Signed-off-by: Guillaume La Roque <[email protected]> Signed-off-by: Nicolas Frayer <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent 27043a7 commit 8dab99c

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

drivers/gpio/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ config GPIO_CLPS711X
228228
Say yes here to support GPIO on CLPS711X SoCs.
229229

230230
config GPIO_DAVINCI
231-
bool "TI Davinci/Keystone GPIO support"
231+
tristate "TI Davinci/Keystone GPIO support"
232232
default y if ARCH_DAVINCI
233233
depends on (ARM || ARM64) && (ARCH_DAVINCI || ARCH_KEYSTONE || ARCH_K3)
234234
help

drivers/gpio/gpio-davinci.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -727,3 +727,14 @@ static int __init davinci_gpio_drv_reg(void)
727727
return platform_driver_register(&davinci_gpio_driver);
728728
}
729729
postcore_initcall(davinci_gpio_drv_reg);
730+
731+
static void __exit davinci_gpio_exit(void)
732+
{
733+
platform_driver_unregister(&davinci_gpio_driver);
734+
}
735+
module_exit(davinci_gpio_exit);
736+
737+
MODULE_AUTHOR("Jan Kotas <[email protected]>");
738+
MODULE_DESCRIPTION("DAVINCI GPIO driver");
739+
MODULE_LICENSE("GPL");
740+
MODULE_ALIAS("platform:gpio-davinci");

0 commit comments

Comments
 (0)