diff options
Diffstat (limited to 'arch/arm/mach-omap2/serial.c')
-rw-r--r-- | arch/arm/mach-omap2/serial.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c index c82ec95cd79e..5352d05b42d6 100644 --- a/arch/arm/mach-omap2/serial.c +++ b/arch/arm/mach-omap2/serial.c | |||
@@ -435,6 +435,20 @@ static void omap_uart_idle_init(struct omap_uart_state *uart) | |||
435 | WARN_ON(ret); | 435 | WARN_ON(ret); |
436 | } | 436 | } |
437 | 437 | ||
438 | void omap_uart_enable_irqs(int enable) | ||
439 | { | ||
440 | int ret; | ||
441 | struct omap_uart_state *uart; | ||
442 | |||
443 | list_for_each_entry(uart, &uart_list, node) { | ||
444 | if (enable) | ||
445 | ret = request_irq(uart->p->irq, omap_uart_interrupt, | ||
446 | IRQF_SHARED, "serial idle", (void *)uart); | ||
447 | else | ||
448 | free_irq(uart->p->irq, (void *)uart); | ||
449 | } | ||
450 | } | ||
451 | |||
438 | static ssize_t sleep_timeout_show(struct kobject *kobj, | 452 | static ssize_t sleep_timeout_show(struct kobject *kobj, |
439 | struct kobj_attribute *attr, | 453 | struct kobj_attribute *attr, |
440 | char *buf) | 454 | char *buf) |