Skip to content

Commit

Permalink
pinctrl: uniphier: fix .pin_dbg_show() callback
Browse files Browse the repository at this point in the history
Without this, reading the "pins" in the debugfs causes kernel BUG.

Fixes: 6e90889 ("pinctrl: UniPhier: add UniPhier pinctrl core support")
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
masahir0y authored and linusw committed May 31, 2016
1 parent 6e408ed commit 10ef827
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/pinctrl/uniphier/pinctrl-uniphier-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ static void uniphier_pctl_pin_dbg_show(struct pinctrl_dev *pctldev,
case UNIPHIER_PIN_PULL_DOWN:
pull_dir = "DOWN";
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:
pull_dir = "NONE";
break;
Expand Down

0 comments on commit 10ef827

Please sign in to comment.