pinctrl: uniphier: fix WARN_ON() of pingroups dump on LD11
commitf642d29c23883f0d700f9f87107f1786dd2d7363
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 14 Jun 2017 04:49:29 +0000 (14 13:49 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Aug 2017 20:43:23 +0000 (16 13:43 -0700)
tree343f711aed22c357d57154ba7108d6b79030a7e7
parent877fe62863d0d1dcac837bef9a7b0028f0cd8951
pinctrl: uniphier: fix WARN_ON() of pingroups dump on LD11

commit 9592bc256d50481dfcdba93890e576a728fb373c upstream.

The pingroups dump of debugfs hits WARN_ON() in pinctrl_groups_show().
Filling non-existing ports with '-1' turned out a bad idea.

Fixes: 70f2f9c4cf25 ("pinctrl: uniphier: add UniPhier PH1-LD11 pinctrl driver")
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c