linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] gpio: altera-a10sr: Set gpio_chip parent property
@ 2017-02-13 19:49 thor.thayer
  2017-02-23 10:14 ` Linus Walleij
  0 siblings, 1 reply; 2+ messages in thread
From: thor.thayer @ 2017-02-13 19:49 UTC (permalink / raw)
  To: linus.walleij, gnurou; +Cc: thor.thayer, linux-gpio

From: Thor Thayer <thor.thayer@linux.intel.com>

Set the gpio_chip parent property since some recent functions
such as devprop_gpiochip_set_names() can use it.

Signed-off-by: Thor Thayer <thor.thayer@linux.intel.com>
---
 drivers/gpio/gpio-altera-a10sr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpio/gpio-altera-a10sr.c b/drivers/gpio/gpio-altera-a10sr.c
index 9e1a138..16a8951 100644
--- a/drivers/gpio/gpio-altera-a10sr.c
+++ b/drivers/gpio/gpio-altera-a10sr.c
@@ -96,7 +96,7 @@ static int altr_a10sr_gpio_probe(struct platform_device *pdev)
 	gpio->regmap = a10sr->regmap;
 
 	gpio->gp = altr_a10sr_gc;
-
+	gpio->gp.parent = pdev->dev.parent;
 	gpio->gp.of_node = pdev->dev.of_node;
 
 	ret = devm_gpiochip_add_data(&pdev->dev, &gpio->gp, gpio);
-- 
1.9.1


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

* Re: [PATCH] gpio: altera-a10sr: Set gpio_chip parent property
  2017-02-13 19:49 [PATCH] gpio: altera-a10sr: Set gpio_chip parent property thor.thayer
@ 2017-02-23 10:14 ` Linus Walleij
  0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2017-02-23 10:14 UTC (permalink / raw)
  To: thor.thayer; +Cc: Alexandre Courbot, linux-gpio@vger.kernel.org

On Mon, Feb 13, 2017 at 8:49 PM,  <thor.thayer@linux.intel.com> wrote:

> From: Thor Thayer <thor.thayer@linux.intel.com>
>
> Set the gpio_chip parent property since some recent functions
> such as devprop_gpiochip_set_names() can use it.
>
> Signed-off-by: Thor Thayer <thor.thayer@linux.intel.com>

Patch applied for fixes.

Yours,
Linus Walleij

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

end of thread, other threads:[~2017-02-23 10:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-13 19:49 [PATCH] gpio: altera-a10sr: Set gpio_chip parent property thor.thayer
2017-02-23 10:14 ` 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).