diff options
-rw-r--r-- | drivers/pinctrl/pinmux.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pinctrl/pinmux.c b/drivers/pinctrl/pinmux.c index 9d144a263dc2..9248ce4efed4 100644 --- a/drivers/pinctrl/pinmux.c +++ b/drivers/pinctrl/pinmux.c | |||
@@ -505,16 +505,14 @@ void pinmux_disable_setting(struct pinctrl_setting const *setting) | |||
505 | pin_free(pctldev, pins[i], NULL); | 505 | pin_free(pctldev, pins[i], NULL); |
506 | } else { | 506 | } else { |
507 | const char *gname; | 507 | const char *gname; |
508 | const char *pname; | ||
509 | 508 | ||
510 | pname = desc ? desc->name : "non-existing"; | ||
511 | gname = pctlops->get_group_name(pctldev, | 509 | gname = pctlops->get_group_name(pctldev, |
512 | setting->data.mux.group); | 510 | setting->data.mux.group); |
513 | dev_warn(pctldev->dev, | 511 | dev_warn(pctldev->dev, |
514 | "not freeing pin %d (%s) as part of " | 512 | "not freeing pin %d (%s) as part of " |
515 | "deactivating group %s - it is already " | 513 | "deactivating group %s - it is already " |
516 | "used for some other setting", | 514 | "used for some other setting", |
517 | pins[i], pname, gname); | 515 | pins[i], desc->name, gname); |
518 | } | 516 | } |
519 | } | 517 | } |
520 | 518 | ||