diff options
-rw-r--r-- | arch/arm/mach-omap1/board-ams-delta.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/arm/mach-omap1/board-ams-delta.c b/arch/arm/mach-omap1/board-ams-delta.c index 7fc11c34b696..9217bbdc35ab 100644 --- a/arch/arm/mach-omap1/board-ams-delta.c +++ b/arch/arm/mach-omap1/board-ams-delta.c | |||
@@ -263,8 +263,18 @@ static struct platform_device ams_delta_modem_device = { | |||
263 | 263 | ||
264 | static int __init ams_delta_modem_init(void) | 264 | static int __init ams_delta_modem_init(void) |
265 | { | 265 | { |
266 | int err; | ||
267 | |||
266 | omap_cfg_reg(M14_1510_GPIO2); | 268 | omap_cfg_reg(M14_1510_GPIO2); |
267 | ams_delta_modem_ports[0].irq = gpio_to_irq(2); | 269 | ams_delta_modem_ports[0].irq = |
270 | gpio_to_irq(AMS_DELTA_GPIO_PIN_MODEM_IRQ); | ||
271 | |||
272 | err = gpio_request(AMS_DELTA_GPIO_PIN_MODEM_IRQ, "modem"); | ||
273 | if (err) { | ||
274 | pr_err("Couldn't request gpio pin for modem\n"); | ||
275 | return err; | ||
276 | } | ||
277 | gpio_direction_input(AMS_DELTA_GPIO_PIN_MODEM_IRQ); | ||
268 | 278 | ||
269 | ams_delta_latch2_write( | 279 | ams_delta_latch2_write( |
270 | AMS_DELTA_LATCH2_MODEM_NRESET | AMS_DELTA_LATCH2_MODEM_CODEC, | 280 | AMS_DELTA_LATCH2_MODEM_NRESET | AMS_DELTA_LATCH2_MODEM_CODEC, |