Skip to content

Commit 8008cc7

Browse files
committed
Merge tag 'omap-for-v4.20/omap1-fix-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into fixes
Fix for omap1 ams-delta irq We need to use IRQ_NOTCONNECTED instead of -EINVAL for ams_delta_modem_ports irq. * tag 'omap-for-v4.20/omap1-fix-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap: ARM: OMAP1: ams-delta: Fix impossible .irq < 0 Signed-off-by: Olof Johansson <olof@lixom.net>
2 parents 00a6a84 + ab6ead7 commit 8008cc7

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

arch/arm/mach-omap1/board-ams-delta.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ static struct plat_serial8250_port ams_delta_modem_ports[] = {
773773
{
774774
.membase = IOMEM(MODEM_VIRT),
775775
.mapbase = MODEM_PHYS,
776-
.irq = -EINVAL, /* changed later */
776+
.irq = IRQ_NOTCONNECTED, /* changed later */
777777
.flags = UPF_BOOT_AUTOCONF,
778778
.irqflags = IRQF_TRIGGER_RISING,
779779
.iotype = UPIO_MEM,
@@ -864,8 +864,7 @@ static int __init modem_nreset_init(void)
864864

865865

866866
/*
867-
* This function expects MODEM IRQ number already assigned to the port
868-
* and fails if it's not.
867+
* This function expects MODEM IRQ number already assigned to the port.
869868
* The MODEM device requires its RESET# pin kept high during probe.
870869
* That requirement can be fulfilled in several ways:
871870
* - with a descriptor of already functional modem_nreset regulator
@@ -888,9 +887,6 @@ static int __init ams_delta_modem_init(void)
888887
if (!machine_is_ams_delta())
889888
return -ENODEV;
890889

891-
if (ams_delta_modem_ports[0].irq < 0)
892-
return ams_delta_modem_ports[0].irq;
893-
894890
omap_cfg_reg(M14_1510_GPIO2);
895891

896892
/* Initialize the modem_nreset regulator consumer before use */

0 commit comments

Comments
 (0)