aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap1/board-ams-delta.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap1/board-ams-delta.c')
-rw-r--r--arch/arm/mach-omap1/board-ams-delta.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-omap1/board-ams-delta.c b/arch/arm/mach-omap1/board-ams-delta.c
index 9d97a72c5393..dc82f3d028b5 100644
--- a/arch/arm/mach-omap1/board-ams-delta.c
+++ b/arch/arm/mach-omap1/board-ams-delta.c
@@ -339,6 +339,9 @@ static int __init ams_delta_modem_init(void)
339{ 339{
340 int err; 340 int err;
341 341
342 if (!machine_is_ams_delta())
343 return -ENODEV;
344
342 omap_cfg_reg(M14_1510_GPIO2); 345 omap_cfg_reg(M14_1510_GPIO2);
343 ams_delta_modem_ports[0].irq = 346 ams_delta_modem_ports[0].irq =
344 gpio_to_irq(AMS_DELTA_GPIO_PIN_MODEM_IRQ); 347 gpio_to_irq(AMS_DELTA_GPIO_PIN_MODEM_IRQ);