diff options
Diffstat (limited to 'drivers/pinctrl/core.c')
-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 8fe15cf15ac8..894cd5e103da 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, | |||
189 | pindesc->pctldev = pctldev; | 189 | pindesc->pctldev = pctldev; |
190 | 190 | ||
191 | /* Copy basic pin info */ | 191 | /* Copy basic pin info */ |
192 | if (pindesc->name) { | 192 | if (name) { |
193 | pindesc->name = name; | 193 | pindesc->name = name; |
194 | } else { | 194 | } else { |
195 | pindesc->name = kasprintf(GFP_KERNEL, "PIN%u", number); | 195 | pindesc->name = kasprintf(GFP_KERNEL, "PIN%u", number); |