gpio: vf610: Allow building as a module
authorJindong Yue <jindong.yue@nxp.com>
Wed, 16 Apr 2025 06:26:05 +0000 (15:26 +0900)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 23 Apr 2025 11:23:18 +0000 (13:23 +0200)
Support for building it as a module for use on the Android platform,
because the Android kernel(GKI) doesn't contain board-specific drivers,
it requires that these drivers be built as a module and loaded into the
system.

Signed-off-by: Jindong Yue <jindong.yue@nxp.com>
Link: https://lore.kernel.org/r/20250416062605.1948856-1-jindong.yue@nxp.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/Kconfig
drivers/gpio/gpio-vf610.c

index 13b7319162c89191eec6bf08f3bba56a1ba0e260..9ae806f45e19c1494d156b7f04b1882be68d3e3f 100644 (file)
@@ -773,7 +773,7 @@ config GPIO_UNIPHIER
          Say yes here to support UniPhier GPIOs.
 
 config GPIO_VF610
-       bool "VF610 GPIO support"
+       tristate "VF610 GPIO support"
        default y if SOC_VF610
        depends on ARCH_MXC || COMPILE_TEST
        select GPIOLIB_IRQCHIP
index 4dad7ce0c4dc6a3f412081c7502c0ce6dd5740da..7de0d5b53d5604784a84def54f284f263a9e12dd 100644 (file)
@@ -345,4 +345,6 @@ static struct platform_driver vf610_gpio_driver = {
        .probe          = vf610_gpio_probe,
 };
 
-builtin_platform_driver(vf610_gpio_driver);
+module_platform_driver(vf610_gpio_driver);
+MODULE_DESCRIPTION("VF610 GPIO driver");
+MODULE_LICENSE("GPL");