From: Axel Lin Date: Tue, 13 Nov 2012 12:20:50 +0000 (+0800) Subject: pinctrl: spear: Make get_gpio_pingroup return NULL when no gpio_pingroup found X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~94^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f37b1b4d407d6abcd24c4519cd892903229cd95;p=pandora-kernel.git pinctrl: spear: Make get_gpio_pingroup return NULL when no gpio_pingroup found Currently get_gpio_pingroup() may return NULL or ERR_PTR(-EINVAL) when no gpio_pingroup found. The caller in gpio_request_endisable() only checks if the return value is NULL. Return ERR_PTR(-EINVAL) for get_gpio_pingroup() causes problem and seems not necessary. Signed-off-by: Axel Lin Acked-by: Viresh Kumar Signed-off-by: Linus Walleij --- Reading git-diff-tree failed