pinctrl: msm: Check for ngpios > MAX_NR_GPIO
authorStephen Boyd <sboyd@codeaurora.org>
Fri, 7 Mar 2014 06:44:41 +0000 (22:44 -0800)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 12 Mar 2014 14:12:27 +0000 (15:12 +0100)
commitdcd278b8604e5c37c61853eb09134cbfea03b7de
treed54071ad856f50e8e9c7fa7ff12b2a8cbb8af0ea
parent3525f5556a1b9e15cb1b796771f2c62deed7aa7a
pinctrl: msm: Check for ngpios > MAX_NR_GPIO

Fail the probe and print a warning if SoC specific drivers have
more GPIOs than there can be accounted for in the static bitmaps.
This should avoid silent corruption/failures in the future.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Acked-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-msm.c