Skip to contentSkip to conversation

gpio: gpio-davinci: Fix condition for irqchip registration

PATCH Applied Vignesh Raghavendra 2 participants 2 messages Oct 2, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpio: 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.

Fixes d29e741cad3f ("gpio: davinci: drop platform data support")
---
 drivers/gpio/gpio-davinci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpio/gpio-davinci.c +1 -1
index 790595f3b949..76b58c70b257 100644
@@ -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");
Signature · 1 line
2.46.2
#1 lore raw

From: Bartosz Golaszewski <[email protected]>

Quoted 5 lines · Vignesh Raghavendra

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.

My bad, thanks for spotting this.

Applied, thanks!

[1/1] gpio: gpio-davinci: Fix condition for irqchip registration

      commit: 69e40c3ef27998105b3002434ee640800d376668

Best regards,

Signature · 1 line
Bartosz Golaszewski <[email protected]>