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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Jan 2019 08:32:33 +0000 (09:32 +0100)
commit414dbd6c00b97035490e8ff659c83aeeb501c7e3
tree68f14952d5dff9f08dc67f78109acc5b4d947142
parentad7013cd6d6a95807673fe80a818156f96513d4d
gpio: pl061: Move irq_chip definition inside struct pl061

[ Upstream commit ed8dce4c6f726b7f3c6bf40859b92a9e32f189c1 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpio/gpio-pl061.c