OSDN Git Service

gpio: set data first, then chip and handler
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 9 Apr 2014 11:20:38 +0000 (13:20 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 14 Apr 2014 08:22:36 +0000 (10:22 +0200)
commit7633fb959b711a8d91548911eb087fb931c7b8e4
tree44a18027ec3cb7722e9bf012574046b880b37ac3
parentc9eaa447e77efe77b7fa4c953bd62de8297fd6c5
gpio: set data first, then chip and handler

During irq mapping, in irq_set_chip_and_handler() the process
of setting this up may incur calls to lock the irqchip, which
in turn may need to dereference and use the chip data. So set
the data first, then set the chip and handler.

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