Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Thor Thayer and committed by
Linus Walleij
9ce9f799 c1ae3cfa

+1 -1
+1 -1
drivers/gpio/gpio-altera-a10sr.c
··· 96 96 gpio->regmap = a10sr->regmap; 97 97 98 98 gpio->gp = altr_a10sr_gc; 99 - 99 + gpio->gp.parent = pdev->dev.parent; 100 100 gpio->gp.of_node = pdev->dev.of_node; 101 101 102 102 ret = devm_gpiochip_add_data(&pdev->dev, &gpio->gp, gpio);