OSDN Git Service

gpio: pl061: Move irq_chip definition inside struct pl061
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Wed, 24 Oct 2018 17:29:15 +0000 (22:59 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 5 Nov 2018 07:54:42 +0000 (08:54 +0100)
commited8dce4c6f726b7f3c6bf40859b92a9e32f189c1
tree7b24be600f98edfaa6dfd61641ea39d0b3f4a199
parent48207d7595d2be604e21228e5a93aaff17e4b808
gpio: pl061: Move irq_chip definition inside struct pl061

Keeping the irq_chip definition static will make it shared with multiple
giochips in the system. This practice is considered to be bad and now we
will get the below warning from gpiolib core:

"detected irqchip that is shared with multiple gpiochips: please fix the
driver."

Hence, move the irq_chip definition from static to `struct pl061` for
using a unique irq_chip for each gpiochip.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-pl061.c