diff options
| author | Vignesh Raghavendra <[email protected]> | 2024-10-02 07:19:01 +0000 |
|---|---|---|
| committer | Bartosz Golaszewski <[email protected]> | 2024-10-02 10:24:37 +0000 |
| commit | 5a431e50e9d4189800be1607eef9deaf95959fc3 (patch) | |
| tree | a8bf5eaf1bb3621e3e1aaa84d0e68418e34cd2e1 /drivers/gpio/gpio-davinci.c | |
| parent | gpio: davinci: fix lazy disable (diff) | |
| download | kernel-5a431e50e9d4189800be1607eef9deaf95959fc3.tar.gz kernel-5a431e50e9d4189800be1607eef9deaf95959fc3.zip | |
gpio: davinci: Fix condition for irqchip registration
Since commit d29e741cad3f ("gpio: davinci: drop platform data support"),
irqchip is no longer being registered on platforms what don't use
unbanked gpios. Fix this.
Reported-by: Sabeeh Khan <[email protected]>
Fixes: d29e741cad3f ("gpio: davinci: drop platform data support")
Signed-off-by: Vignesh Raghavendra <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'drivers/gpio/gpio-davinci.c')
| -rw-r--r-- | drivers/gpio/gpio-davinci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-davinci.c b/drivers/gpio/gpio-davinci.c index 790595f3b949..76b58c70b257 100644 --- a/drivers/gpio/gpio-davinci.c +++ b/drivers/gpio/gpio-davinci.c @@ -472,7 +472,7 @@ static int davinci_gpio_irq_setup(struct platform_device *pdev) return PTR_ERR(clk); } - if (chips->gpio_unbanked) { + if (!chips->gpio_unbanked) { irq = devm_irq_alloc_descs(dev, -1, 0, ngpio, 0); if (irq < 0) { dev_err(dev, "Couldn't allocate IRQ numbers\n"); |
