From: Peng Fan Date: Sun, 23 Aug 2015 13:11:52 +0000 (+0800) Subject: gpio: mxc: need to check return value of irq_alloc_generic_chip X-Git-Tag: omap-for-v4.3/fixes-rc5~132^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e26b0b114adb321a9bf41520bac304ef49e77d1;p=pandora-kernel.git gpio: mxc: need to check return value of irq_alloc_generic_chip Need to check return value of irq_alloc_generic_chip, because it may return NULL. 1. Change mxc_gpio_init_gc return type from void to int. 2. Add a new lable out_irqdomain_remove to remove the irq domain when mxc_gpio_init_gc fail. Signed-off-by: Peng Fan Cc: Alexandre Courbot [Manually rebased] Signed-off-by: Linus Walleij --- Reading git-diff-tree failed