]> Git Repo - linux.git/commit - drivers/gpio/gpio-mxs.c
gpio: mxs: need to check return value of irq_alloc_generic_chip
authorPeng Fan <[email protected]>
Sun, 23 Aug 2015 13:11:53 +0000 (21:11 +0800)
committerLinus Walleij <[email protected]>
Mon, 14 Sep 2015 07:12:03 +0000 (09:12 +0200)
commit1bbc557d976b4e5ae9a41d619bd79f09ccac9afc
tree802816dd4c955efc16730564ff88dd64915b5deb
parent9e26b0b114adb321a9bf41520bac304ef49e77d1
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 <[email protected]>
Cc: Alexandre Courbot <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
drivers/gpio/gpio-mxs.c
This page took 0.046998 seconds and 4 git commands to generate.