diff options
author | Peng Fan <van.freenix@gmail.com> | 2015-08-23 16:11:52 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2015-09-14 10:12:02 +0300 |
commit | 9e26b0b114adb321a9bf41520bac304ef49e77d1 (patch) | |
tree | eb9b378efe9e7f791912061769cb128bd2dcae7d /drivers/gpio/gpio-mxs.c | |
parent | 6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f (diff) | |
download | linux-9e26b0b114adb321a9bf41520bac304ef49e77d1.tar.xz |
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 <van.freenix@gmail.com>
Cc: Alexandre Courbot <gnurou@gmail.com>
[Manually rebased]
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-mxs.c')
0 files changed, 0 insertions, 0 deletions