diff options
author | Phil Reid <preid@electromag.com.au> | 2019-06-10 17:50:11 +0800 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2019-06-10 16:24:22 +0200 |
commit | 9d373acadaf676e3733ba57c7294ec60e9a358a9 (patch) | |
tree | e0f3875210e0f7883de166b5b736b569a0118f7d /drivers/gpio/gpiolib-of.c | |
parent | 1ebd06871b57a632b6624fbd4b680dc7dd8a1283 (diff) | |
download | linux-9d373acadaf676e3733ba57c7294ec60e9a358a9.tar.gz |
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