aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mach-omap1/board-ams-delta.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/arm/mach-omap1/board-ams-delta.c b/arch/arm/mach-omap1/board-ams-delta.c
index 318925ae3ebe..b01b68494cac 100644
--- a/arch/arm/mach-omap1/board-ams-delta.c
+++ b/arch/arm/mach-omap1/board-ams-delta.c
@@ -765,7 +765,7 @@ static struct plat_serial8250_port ams_delta_modem_ports[] = {
765 { 765 {
766 .membase = IOMEM(MODEM_VIRT), 766 .membase = IOMEM(MODEM_VIRT),
767 .mapbase = MODEM_PHYS, 767 .mapbase = MODEM_PHYS,
768 .irq = -EINVAL, /* changed later */ 768 .irq = IRQ_NOTCONNECTED, /* changed later */
769 .flags = UPF_BOOT_AUTOCONF, 769 .flags = UPF_BOOT_AUTOCONF,
770 .irqflags = IRQF_TRIGGER_RISING, 770 .irqflags = IRQF_TRIGGER_RISING,
771 .iotype = UPIO_MEM, 771 .iotype = UPIO_MEM,
@@ -856,8 +856,7 @@ static int __init modem_nreset_init(void)
856 856
857 857
858/* 858/*
859 * This function expects MODEM IRQ number already assigned to the port 859 * This function expects MODEM IRQ number already assigned to the port.
860 * and fails if it's not.
861 * The MODEM device requires its RESET# pin kept high during probe. 860 * The MODEM device requires its RESET# pin kept high during probe.
862 * That requirement can be fulfilled in several ways: 861 * That requirement can be fulfilled in several ways:
863 * - with a descriptor of already functional modem_nreset regulator 862 * - with a descriptor of already functional modem_nreset regulator
@@ -880,9 +879,6 @@ static int __init ams_delta_modem_init(void)
880 if (!machine_is_ams_delta()) 879 if (!machine_is_ams_delta())
881 return -ENODEV; 880 return -ENODEV;
882 881
883 if (ams_delta_modem_ports[0].irq < 0)
884 return ams_delta_modem_ports[0].irq;
885
886 omap_cfg_reg(M14_1510_GPIO2); 882 omap_cfg_reg(M14_1510_GPIO2);
887 883
888 /* Initialize the modem_nreset regulator consumer before use */ 884 /* Initialize the modem_nreset regulator consumer before use */