diff mbox

gpio: altera-a10sr: Set gpio_chip parent property

Message ID 1487015398-4603-1-git-send-email-thor.thayer@linux.intel.com
State New
Headers show

Commit Message

Thor Thayer Feb. 13, 2017, 7:49 p.m. UTC
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(-)

Comments

Linus Walleij Feb. 23, 2017, 10:14 a.m. UTC | #1
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
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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);