pinctrl: rza1: Remove suffix from gpiochip label
authorJacopo Mondi <jacopo+renesas@jmondi.org>
Thu, 24 Aug 2017 08:52:18 +0000 (10:52 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 31 Aug 2017 12:45:18 +0000 (14:45 +0200)
The OF node name already contains the gpio chip identifier, no need to
append it when creating the label.

The following debug message clearly shows the suffix is not required
"pinctrl-rza1 fcfe3000.pin-controller: Parsed gpiochip gpio-0-0 with 6
pins"

Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-rza1.c

index 7fe5b373f58cd90218d874cd1615ae6726626406..04d058706b808fe8807192a6f3219c845cfa9b27 100644 (file)
@@ -1096,8 +1096,8 @@ static int rza1_parse_gpiochip(struct rza1_pinctrl *rza1_pctl,
 
        *chip           = rza1_gpiochip_template;
        chip->base      = -1;
-       chip->label     = devm_kasprintf(rza1_pctl->dev, GFP_KERNEL, "%s-%u",
-                                        np->name, gpioport);
+       chip->label     = devm_kasprintf(rza1_pctl->dev, GFP_KERNEL, "%s",
+                                        np->name);
        chip->ngpio     = of_args.args[2];
        chip->of_node   = np;
        chip->parent    = rza1_pctl->dev;