diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2012-02-01 17:11:40 (GMT) |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2012-02-01 18:35:21 (GMT) |
commit | 8dc6ae4d448758a30cf5fa822d6fe6f4e15a04c6 (patch) | |
tree | 0cb92cc89c6ca6f5801a10fd1f4c5138bd95833a /drivers/pinctrl | |
parent | 62aa2b537c6f5957afd98e29f96897419ed5ebab (diff) | |
download | linux-8dc6ae4d448758a30cf5fa822d6fe6f4e15a04c6.tar.xz |
pinctrl: restore pin naming
Commit ca53c5f1ca5c936777caca46b7c716a40682ce83
("pinctrl: conjure names for unnamed pins") made pins lose
their identity and only get autogenerated names.
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r-- | drivers/pinctrl/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/core.c b/drivers/pinctrl/core.c index 8fe15cf..894cd5e 100644 --- a/drivers/pinctrl/core.c +++ b/drivers/pinctrl/core.c @@ -189,7 +189,7 @@ static int pinctrl_register_one_pin(struct pinctrl_dev *pctldev, pindesc->pctldev = pctldev; /* Copy basic pin info */ - if (pindesc->name) { + if (name) { pindesc->name = name; } else { pindesc->name = kasprintf(GFP_KERNEL, "PIN%u", number); |