summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThor Thayer <thor.thayer@linux.intel.com>2017-02-13 20:49:58 +0100
committerLinus Walleij <linus.walleij@linaro.org>2017-03-06 14:35:21 +0100
commit9ce9f7999741f342eeffd036ab09213a2fa93040 (patch)
tree46a09f0bbb7c9bdab5f1afccd36f9794e351e481
parentLinux 4.11-rc1 (diff)
downloadlinux-9ce9f7999741f342eeffd036ab09213a2fa93040.tar.xz
linux-9ce9f7999741f342eeffd036ab09213a2fa93040.zip
gpio: altera-a10sr: Set gpio_chip parent property
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> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r--drivers/gpio/gpio-altera-a10sr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-altera-a10sr.c b/drivers/gpio/gpio-altera-a10sr.c
index 9e1a138fed53..16a8951b2bed 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);