pinctrl: nsp-gpio: fix up parent attribute
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 10 Dec 2015 17:50:51 +0000 (18:50 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 10 Dec 2015 17:50:51 +0000 (18:50 +0100)
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>
drivers/pinctrl/bcm/pinctrl-nsp-gpio.c

index 06b7aaf3548c1d7641101d931b5eae3d30f1f2f8..bb7891e786e3e74277095358a9b10c3de9ed7fca 100644 (file)
@@ -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;