Commit cb715d0a authored by Jacopo Mondi's avatar Jacopo Mondi Committed by Linus Walleij

pinctrl: rza1: Remove suffix from gpiochip label

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: default avatarJacopo Mondi <jacopo+renesas@jmondi.org>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 4e83ac4c
...@@ -1096,8 +1096,8 @@ static int rza1_parse_gpiochip(struct rza1_pinctrl *rza1_pctl, ...@@ -1096,8 +1096,8 @@ static int rza1_parse_gpiochip(struct rza1_pinctrl *rza1_pctl,
*chip = rza1_gpiochip_template; *chip = rza1_gpiochip_template;
chip->base = -1; chip->base = -1;
chip->label = devm_kasprintf(rza1_pctl->dev, GFP_KERNEL, "%s-%u", chip->label = devm_kasprintf(rza1_pctl->dev, GFP_KERNEL, "%s",
np->name, gpioport); np->name);
chip->ngpio = of_args.args[2]; chip->ngpio = of_args.args[2];
chip->of_node = np; chip->of_node = np;
chip->parent = rza1_pctl->dev; chip->parent = rza1_pctl->dev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment