linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] gpio: arizona: Use the of_node from the Arizona device
@ 2013-09-29 20:00 Charles Keepax
  2013-10-02 10:50 ` Linus Walleij
  0 siblings, 1 reply; 2+ messages in thread
From: Charles Keepax @ 2013-09-29 20:00 UTC (permalink / raw)
  To: linus.walleij; +Cc: broonie, patches, linux-gpio, linux-kernel, Charles Keepax

We need to use the of_node from the main Arizona device as that
holds our configuration.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
---
 drivers/gpio/gpio-arizona.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/gpio/gpio-arizona.c b/drivers/gpio/gpio-arizona.c
index a2bec3c..dceb5dc 100644
--- a/drivers/gpio/gpio-arizona.c
+++ b/drivers/gpio/gpio-arizona.c
@@ -109,6 +109,9 @@ static int arizona_gpio_probe(struct platform_device *pdev)
 	arizona_gpio->arizona = arizona;
 	arizona_gpio->gpio_chip = template_chip;
 	arizona_gpio->gpio_chip.dev = &pdev->dev;
+#ifdef CONFIG_OF_GPIO
+	arizona_gpio->gpio_chip.of_node = arizona->dev->of_node;
+#endif
 
 	switch (arizona->type) {
 	case WM5102:
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] gpio: arizona: Use the of_node from the Arizona device
  2013-09-29 20:00 [PATCH] gpio: arizona: Use the of_node from the Arizona device Charles Keepax
@ 2013-10-02 10:50 ` Linus Walleij
  0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2013-10-02 10:50 UTC (permalink / raw)
  To: Charles Keepax
  Cc: Mark Brown, patches, linux-gpio@vger.kernel.org,
	linux-kernel@vger.kernel.org

On Sun, Sep 29, 2013 at 10:00 PM, Charles Keepax
<ckeepax@opensource.wolfsonmicro.com> wrote:

> We need to use the of_node from the main Arizona device as that
> holds our configuration.
>
> Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>

Patch applied.

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-10-02 10:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-29 20:00 [PATCH] gpio: arizona: Use the of_node from the Arizona device Charles Keepax
2013-10-02 10:50 ` 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).