Re: [PATCH 1/2] gpio: mxc: need to check return value of irq_alloc_generic_chip

2015-09-08 Thread Linus Walleij
On Sun, Aug 23, 2015 at 3:11 PM, Peng Fan wrote: > 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. >

Re: [PATCH 1/2] gpio: mxc: need to check return value of irq_alloc_generic_chip

2015-09-08 Thread Linus Walleij
On Sun, Aug 23, 2015 at 3:11 PM, Peng Fan wrote: > 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

[PATCH 1/2] gpio: mxc: need to check return value of irq_alloc_generic_chip

2015-08-23 Thread Peng Fan
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: Linus Walleij Cc: Alexandre

[PATCH 1/2] gpio: mxc: need to check return value of irq_alloc_generic_chip

2015-08-23 Thread Peng Fan
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.free...@gmail.com Cc: Linus