gpiolib: remove warnning of allocations with IRQs disabled
authorZhangfei Gao <zhangfei.gao@linaro.org>
Sun, 9 Jun 2013 03:08:32 +0000 (11:08 +0800)
committerTodd Poynor <toddpoynor@google.com>
Thu, 19 Dec 2013 02:43:55 +0000 (18:43 -0800)
commitd214ac7202b30062bf3164b61fc466793d359f7b
treec3dd21d360a8cf7071654d2211688b219efd409d
parent39293584f8a423bcb4efba635cddacc3d4d0b85e
gpiolib: remove warnning of allocations with IRQs disabled

Move of_gpiochip_add outof spin_lock, since kzalloc inside
of_gpiochip_add -> of_gpiochip_add_pin_range -> gpiochip_add_pin_range -> kzalloc

WARNING: at kernel/lockdep.c:2740 lockdep_trace_alloc+0xf8/0xfc()
DEBUG_LOCKS_WARN_ON(irqs_disabled_flags(flags))

Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c