diff options
| author | 2019-06-10 17:50:11 +0800 | |
|---|---|---|
| committer | 2019-06-10 16:24:22 +0200 | |
| commit | 9d373acadaf676e3733ba57c7294ec60e9a358a9 (patch) | |
| tree | e0f3875210e0f7883de166b5b736b569a0118f7d /drivers/gpio/gpiolib-of.c | |
| parent | gpio: xilinx: convert from OF GPIO to standard devm APIs (diff) | |
| download | wireguard-linux-9d373acadaf676e3733ba57c7294ec60e9a358a9.tar.xz wireguard-linux-9d373acadaf676e3733ba57c7294ec60e9a358a9.zip | |
gpio: altera: Allocate irq_chip dynamically
Keeping the irq_chip definition static shares it with multiple instances
of the altera gpiochip in the system. This is bad and now we get this
warning from gpiolib core:
"detected irqchip that is shared with multiple gpiochips: please fix the
driver."
Hence, move the irq_chip definition from being driver static into the
struct altera_gpio_chips. So a unique irq_chip is used for each gpiochip
instance.
Signed-off-by: Phil Reid <preid@electromag.com.au>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpiolib-of.c')
0 files changed, 0 insertions, 0 deletions
