Commit 2857aac4 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Greg Kroah-Hartman

pinctrl: uniphier: fix .pin_dbg_show() callback

commit 10ef8277 upstream.

Without this, reading the "pins" in the debugfs causes kernel BUG.

Fixes: 6e908892 ("pinctrl: UniPhier: add UniPhier pinctrl core support")
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1bcafa38
...@@ -73,6 +73,12 @@ static void uniphier_pctl_pin_dbg_show(struct pinctrl_dev *pctldev, ...@@ -73,6 +73,12 @@ static void uniphier_pctl_pin_dbg_show(struct pinctrl_dev *pctldev,
case UNIPHIER_PIN_PULL_DOWN: case UNIPHIER_PIN_PULL_DOWN:
pull_dir = "DOWN"; pull_dir = "DOWN";
break; break;
case UNIPHIER_PIN_PULL_UP_FIXED:
pull_dir = "UP(FIXED)";
break;
case UNIPHIER_PIN_PULL_DOWN_FIXED:
pull_dir = "DOWN(FIXED)";
break;
case UNIPHIER_PIN_PULL_NONE: case UNIPHIER_PIN_PULL_NONE:
pull_dir = "NONE"; pull_dir = "NONE";
break; break;
......
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