Message ID | 20241007103440.38416-1-brgl@bgdev.pl |
---|---|
State | New |
Headers | show |
Series | [v2,1/2] gpio: davinci: allow building the module with COMPILE_TEST=y | expand |
On Mon, Oct 7, 2024 at 12:34 PM Bartosz Golaszewski <brgl@bgdev.pl> wrote: > From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > > 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. > > Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Yours, Linus Walleij
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> On Mon, 07 Oct 2024 12:34:39 +0200, Bartosz Golaszewski wrote: > 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. > > Applied, thanks! [1/2] gpio: davinci: allow building the module with COMPILE_TEST=y commit: 56d6ff4b8faf1c2d5c850ed8b4e5dfa6cd81413b [2/2] gpio: davinci: use generic device properties commit: 5dfdcd9e73119dcb60b0299e96d2d84d23c354fd Best regards,
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index d93cd4f722b4..54770c917638 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -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. diff --git a/drivers/gpio/gpio-davinci.c b/drivers/gpio/gpio-davinci.c index 76b58c70b257..1da1d7c7ac2d 100644 --- a/drivers/gpio/gpio-davinci.c +++ b/drivers/gpio/gpio-davinci.c @@ -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, }, };