commit | 942cde724075f840ded89390b10dce1a47a4d712 | [log] [tgz] |
---|---|---|
author | Tony Lindgren <tony@atomide.com> | Thu Sep 03 10:34:30 2015 -0700 |
committer | Linus Walleij <linus.walleij@linaro.org> | Mon Sep 14 09:13:43 2015 +0200 |
tree | 838d42b5eb8cb93c3284649b8afe461a57cb1394 | |
parent | 163dc9f39a26b41fc49319fce4145b35f9705789 [diff] |
pinctrl: core: Warn about NULL gpio_chip in pinctrl_ready_for_gpio_range() If the gpio driver is confused about the numbers for gpio-ranges, pinctrl_ready_for_gpio_range() may get called with invalid GPIO causing a NULL pointer exception. Let's instead provide a warning that allows fixing the problem and return with error. Signed-off-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>