* [PATCH 1/2] gpio: clps711x: Use of_match_ptr()
@ 2013-12-24 14:08 Alexander Shiyan
2013-12-24 14:08 ` [PATCH 2/2] gpio: clps711x: Enable driver compilation with COMPILE_TEST Alexander Shiyan
2014-01-07 17:54 ` [PATCH 1/2] gpio: clps711x: Use of_match_ptr() Linus Walleij
0 siblings, 2 replies; 4+ messages in thread
From: Alexander Shiyan @ 2013-12-24 14:08 UTC (permalink / raw)
To: linux-gpio; +Cc: Linus Walleij, Alexandre Courbot, Alexander Shiyan
There is no reason to keep the OF data if the driver was compiled
without DT support.
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
drivers/gpio/gpio-clps711x.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpio/gpio-clps711x.c b/drivers/gpio/gpio-clps711x.c
index 0924f20..d355027 100644
--- a/drivers/gpio/gpio-clps711x.c
+++ b/drivers/gpio/gpio-clps711x.c
@@ -77,7 +77,7 @@ static int clps711x_gpio_remove(struct platform_device *pdev)
return bgpio_remove(bgc);
}
-static const struct of_device_id clps711x_gpio_ids[] = {
+static const struct of_device_id __maybe_unused clps711x_gpio_ids[] = {
{ .compatible = "cirrus,clps711x-gpio" },
{ }
};
@@ -87,7 +87,7 @@ static struct platform_driver clps711x_gpio_driver = {
.driver = {
.name = "clps711x-gpio",
.owner = THIS_MODULE,
- .of_match_table = clps711x_gpio_ids,
+ .of_match_table = of_match_ptr(clps711x_gpio_ids),
},
.probe = clps711x_gpio_probe,
.remove = clps711x_gpio_remove,
--
1.8.3.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] gpio: clps711x: Enable driver compilation with COMPILE_TEST
2013-12-24 14:08 [PATCH 1/2] gpio: clps711x: Use of_match_ptr() Alexander Shiyan
@ 2013-12-24 14:08 ` Alexander Shiyan
2014-01-07 17:54 ` Linus Walleij
2014-01-07 17:54 ` [PATCH 1/2] gpio: clps711x: Use of_match_ptr() Linus Walleij
1 sibling, 1 reply; 4+ messages in thread
From: Alexander Shiyan @ 2013-12-24 14:08 UTC (permalink / raw)
To: linux-gpio; +Cc: Linus Walleij, Alexandre Courbot, Alexander Shiyan
This helps increasing build testing coverage.
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
drivers/gpio/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index 98bc397..5416f5b 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -110,7 +110,7 @@ comment "Memory mapped GPIO drivers:"
config GPIO_CLPS711X
tristate "CLPS711X GPIO support"
- depends on ARCH_CLPS711X
+ depends on ARCH_CLPS711X || COMPILE_TEST
select GPIO_GENERIC
help
Say yes here to support GPIO on CLPS711X SoCs.
--
1.8.3.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] gpio: clps711x: Use of_match_ptr()
2013-12-24 14:08 [PATCH 1/2] gpio: clps711x: Use of_match_ptr() Alexander Shiyan
2013-12-24 14:08 ` [PATCH 2/2] gpio: clps711x: Enable driver compilation with COMPILE_TEST Alexander Shiyan
@ 2014-01-07 17:54 ` Linus Walleij
1 sibling, 0 replies; 4+ messages in thread
From: Linus Walleij @ 2014-01-07 17:54 UTC (permalink / raw)
To: Alexander Shiyan; +Cc: linux-gpio@vger.kernel.org, Alexandre Courbot
On Tue, Dec 24, 2013 at 3:08 PM, Alexander Shiyan <shc_work@mail.ru> wrote:
> There is no reason to keep the OF data if the driver was compiled
> without DT support.
>
> Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Patch applied.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2/2] gpio: clps711x: Enable driver compilation with COMPILE_TEST
2013-12-24 14:08 ` [PATCH 2/2] gpio: clps711x: Enable driver compilation with COMPILE_TEST Alexander Shiyan
@ 2014-01-07 17:54 ` Linus Walleij
0 siblings, 0 replies; 4+ messages in thread
From: Linus Walleij @ 2014-01-07 17:54 UTC (permalink / raw)
To: Alexander Shiyan; +Cc: linux-gpio@vger.kernel.org, Alexandre Courbot
On Tue, Dec 24, 2013 at 3:08 PM, Alexander Shiyan <shc_work@mail.ru> wrote:
> This helps increasing build testing coverage.
>
> Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Patch applied.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-01-07 17:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-24 14:08 [PATCH 1/2] gpio: clps711x: Use of_match_ptr() Alexander Shiyan
2013-12-24 14:08 ` [PATCH 2/2] gpio: clps711x: Enable driver compilation with COMPILE_TEST Alexander Shiyan
2014-01-07 17:54 ` Linus Walleij
2014-01-07 17:54 ` [PATCH 1/2] gpio: clps711x: Use of_match_ptr() Linus Walleij
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).