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

Commit fbab62c5 authored by Javier Martinez Canillas's avatar Javier Martinez Canillas Committed by Thomas Gleixner
Browse files

irqdomain: Use irq_get_trigger_type() to get IRQ flags



Use irq_get_trigger_type() to get the IRQ trigger type flags
instead calling irqd_get_trigger_type(irq_desc_get_irq_data(virq))

Signed-off-by: default avatarJavier Martinez Canillas <javier.martinez@collabora.co.uk>
Acked-by: default avatarGrant Likely <grant.likely@linaro.org>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Samuel Ortiz <sameo@linux.intel.com>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-mips@linux-mips.org
Link: http://lkml.kernel.org/r/1371228049-27080-8-git-send-email-javier.martinez@collabora.co.uk


Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 5ebf1f29
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -687,7 +687,7 @@ unsigned int irq_create_of_mapping(struct device_node *controller,

	/* Set type if specified and different than the current one */
	if (type != IRQ_TYPE_NONE &&
	    type != (irqd_get_trigger_type(irq_get_irq_data(virq))))
	    type != irq_get_trigger_type(virq))
		irq_set_irq_type(virq, type);
	return virq;
}