Commit 8dc6ae4d authored by Linus Walleij's avatar Linus Walleij

pinctrl: restore pin naming

Commit ca53c5f1
("pinctrl: conjure names for unnamed pins") made pins lose
their identity and only get autogenerated names.
Acked-by: default avatarStephen Warren <swarren@nvidia.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 62aa2b53
...@@ -189,7 +189,7 @@ static int pinctrl_register_one_pin(struct pinctrl_dev *pctldev, ...@@ -189,7 +189,7 @@ static int pinctrl_register_one_pin(struct pinctrl_dev *pctldev,
pindesc->pctldev = pctldev; pindesc->pctldev = pctldev;
/* Copy basic pin info */ /* Copy basic pin info */
if (pindesc->name) { if (name) {
pindesc->name = name; pindesc->name = name;
} else { } else {
pindesc->name = kasprintf(GFP_KERNEL, "PIN%u", number); pindesc->name = kasprintf(GFP_KERNEL, "PIN%u", number);
......
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