Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 31ebe86d authored by Linus Walleij's avatar Linus Walleij
Browse files

pinctrl: nomadik: don't default-flag IRQs as falling



There is no point in adding any default trigger for these
GPIO interrupts: the device tree should contain all trigger
information and the platforms using the driver boots
exclusively from device tree.

Also the boot log is nagging me to fix this:

[    0.771057] ------------[ cut here ]------------
[    0.775695] WARNING: CPU: 0 PID: 1 at
   ../drivers/gpio/gpiolib.c:1622 _gpiochip_irqchip_add+0x138/0x160
[    0.785034] /soc/gpio@8012e000: Ignoring 2 default trigger
(...)
[    0.942962] gpio 8012e000.gpio: at address e08f8000
(etc ad nauseam)

Suggested-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
Acked-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 07bc299b
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1177,7 +1177,7 @@ static int nmk_gpio_probe(struct platform_device *dev)
				   irqchip,
				   irqchip,
				   0,
				   0,
				   handle_edge_irq,
				   handle_edge_irq,
				   IRQ_TYPE_EDGE_FALLING);
				   IRQ_TYPE_NONE);
	if (ret) {
	if (ret) {
		dev_err(&dev->dev, "could not add irqchip\n");
		dev_err(&dev->dev, "could not add irqchip\n");
		gpiochip_remove(&nmk_chip->chip);
		gpiochip_remove(&nmk_chip->chip);