Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: mx5: board-cpuimx51.c fixup irq_to_gpio() usage

irq_to_gpio() is being called on a GPIO so change to using
gpio_to_irq() instead.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>

authored by

Ben Dooks and committed by
Sascha Hauer
546fb6cb 1a43f201

+1 -1
+1 -1
arch/arm/mach-mx5/board-cpuimx51.c
··· 81 81 .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_IOREMAP, 82 82 }, { 83 83 .mapbase = (unsigned long)(MX51_CS1_BASE_ADDR + 0x2000000), 84 - .irq = irq_to_gpio(CPUIMX51_QUARTD_GPIO), 84 + .irq = gpio_to_irq(CPUIMX51_QUARTD_GPIO), 85 85 .irqflags = IRQF_TRIGGER_HIGH, 86 86 .uartclk = CPUIMX51_QUART_XTAL, 87 87 .regshift = CPUIMX51_QUART_REGSHIFT,