pinctrl: mvebu: fix num_settings in mpp group assignment
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Mon, 1 Feb 2016 22:48:23 +0000 (23:48 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 13 Feb 2016 22:51:45 +0000 (23:51 +0100)
commit7864d92621b6897595fa698b27240828592ebd71
tree6cd818eda86f50f6af50defe4740965c3f7c79f6
parent111f2b87326199a736c3469265763a6be6e5528f
pinctrl: mvebu: fix num_settings in mpp group assignment

When assigning mpp settings from static mpp modes to mpp groups,
we do not want any groups that have no supported setting for a
specific Kirkwood variant. However, when there is at least a
single supported setting, we need to assign the number of all
settings in this mode to grp->num_settings as we are reusing
the static modes table.

Fixes: 0581b16b1840 ("pinctrl: mvebu: complain about missing group after checking variant")
Reported-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Tested-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Cc: Gregory Clement <gregory.clement@free-electrons.com>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mvebu/pinctrl-mvebu.c