| From 53c9bf5edfe4359a3baa2e42da49dabcc25d789a Mon Sep 17 00:00:00 2001 |
| From: Thor Thayer <thor.thayer@linux.intel.com> |
| Date: Mon, 13 Feb 2017 13:49:58 -0600 |
| Subject: [PATCH 075/103] 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> |
| --- |
| drivers/gpio/gpio-altera-a10sr.c | 2 +- |
| 1 file changed, 1 insertion(+), 1 deletion(-) |
| |
| --- 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 |
| 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); |