gpio: altera-a10sr: Set gpio_chip parent property
PATCH 1/1 gpio: altera-a10sr: Set gpio_chip parent property
From: Thor Thayer <[email protected]>
Set the gpio_chip parent property since some recent functions such as devprop_gpiochip_set_names() can use it.
Signed-off-by Thor Thayer <[email protected]>
--- drivers/gpio/gpio-altera-a10sr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpio/gpio-altera-a10sr.c +1 -1
@@ -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);
Signature · 1 line
1.9.1
Quoted 6 lines · On Mon, Feb 13, 2017 at 8:49 PM, <[email protected]> wrote:
From: Thor Thayer <[email protected]>
Set the
gpio_chipparent property since some recent functions such asdevprop_gpiochip_set_names()can use it.Signed-off-by Thor Thayer <[email protected]>
Patch applied for fixes.
Yours,
Linus Walleij