Skip to content

Commit

Permalink
pinctrl: nsp-gpio: fix up parent attribute
Browse files Browse the repository at this point in the history
The .dev field has been renamed .parent in the GPIO tree.
Fix it up.

Cc: Yendapally Reddy Dhananjaya Reddy <yrdreddy@broadcom.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Linus Walleij committed Dec 10, 2015
1 parent adfd7cb commit 0182141
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pinctrl/bcm/pinctrl-nsp-gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ static int nsp_gpio_probe(struct platform_device *pdev)
gc->can_sleep = false;
gc->ngpio = val;
gc->label = dev_name(dev);
gc->dev = dev;
gc->parent = dev;
gc->of_node = dev->of_node;
gc->request = nsp_gpio_request;
gc->free = nsp_gpio_free;
Expand Down

0 comments on commit 0182141

Please sign in to comment.