From: Peng Fan Date: Sun, 23 Aug 2015 13:11:53 +0000 (+0800) Subject: gpio: mxs: need to check return value of irq_alloc_generic_chip X-Git-Tag: omap-for-v4.3/fixes-rc5~132^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bbc557d976b4e5ae9a41d619bd79f09ccac9afc;p=pandora-kernel.git gpio: mxs: 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 mxs_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 Signed-off-by: Linus Walleij --- Reading git-diff-tree failed