From: Tony Lindgren Date: Thu, 3 Sep 2015 17:34:30 +0000 (-0700) Subject: pinctrl: core: Warn about NULL gpio_chip in pinctrl_ready_for_gpio_range() X-Git-Tag: omap-for-v4.3/fixes-rc5~131^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=942cde724075f840ded89390b10dce1a47a4d712;p=pandora-kernel.git 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 Signed-off-by: Linus Walleij --- Reading git-diff-tree failed