mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 01:53:29 +02:00
gpio: davinci: allow building the module with COMPILE_TEST=y
Make it possible to build the module when COMPILE_TEST is enabled for better build coverage. Stop using of_match_ptr() to avoid build warnings. Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20241007103440.38416-1-brgl@bgdev.pl Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
This commit is contained in:
parent
16de489e3a
commit
56d6ff4b8f
|
|
@ -243,7 +243,7 @@ config GPIO_CLPS711X
|
|||
config GPIO_DAVINCI
|
||||
tristate "TI Davinci/Keystone GPIO support"
|
||||
default y if ARCH_DAVINCI
|
||||
depends on (ARM || ARM64) && (ARCH_DAVINCI || ARCH_KEYSTONE || ARCH_K3)
|
||||
depends on ((ARM || ARM64) && (ARCH_DAVINCI || ARCH_KEYSTONE || ARCH_K3)) || COMPILE_TEST
|
||||
help
|
||||
Say yes here to enable GPIO support for TI Davinci/Keystone SoCs.
|
||||
|
||||
|
|
|
|||
|
|
@ -662,7 +662,7 @@ static struct platform_driver davinci_gpio_driver = {
|
|||
.driver = {
|
||||
.name = "davinci_gpio",
|
||||
.pm = pm_sleep_ptr(&davinci_gpio_dev_pm_ops),
|
||||
.of_match_table = of_match_ptr(davinci_gpio_ids),
|
||||
.of_match_table = davinci_gpio_ids,
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user