mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
gpio: vf610: Allow building as a module
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>
This commit is contained in:
parent
29f4c4da74
commit
73dc041f8a
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue