mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-28 12:18:26 +02:00
95ef6e1d42
Thank you Peter Wagner for the patch. I refreshed the kernel patches and added the md5sum of the kernel. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26905 3c298f89-4303-0410-b956-a3cf2f4a3e73
55 lines
1.5 KiB
Diff
55 lines
1.5 KiB
Diff
--- a/arch/arm/mach-omap2/omap_hwmod_2420_data.c
|
|
+++ b/arch/arm/mach-omap2/omap_hwmod_2420_data.c
|
|
@@ -362,7 +362,7 @@ static struct omap_hwmod_class uart_clas
|
|
/* UART1 */
|
|
|
|
static struct omap_hwmod_irq_info uart1_mpu_irqs[] = {
|
|
- { .irq = INT_24XX_UART1_IRQ, },
|
|
+ { .irq = 0, },
|
|
};
|
|
|
|
static struct omap_hwmod_dma_info uart1_sdma_reqs[] = {
|
|
--- a/arch/arm/mach-omap2/serial.c
|
|
+++ b/arch/arm/mach-omap2/serial.c
|
|
@@ -546,10 +546,12 @@ static void omap_uart_idle_init(struct o
|
|
uart->padconf = 0;
|
|
}
|
|
|
|
- uart->irqflags |= IRQF_SHARED;
|
|
- ret = request_threaded_irq(uart->irq, NULL, omap_uart_interrupt,
|
|
- IRQF_SHARED, "serial idle", (void *)uart);
|
|
- WARN_ON(ret);
|
|
+ if (uart->irq) {
|
|
+ uart->irqflags |= IRQF_SHARED;
|
|
+ ret = request_threaded_irq(uart->irq, NULL, omap_uart_interrupt,
|
|
+ IRQF_SHARED, "serial idle", (void *)uart);
|
|
+ WARN_ON(ret);
|
|
+ }
|
|
}
|
|
|
|
void omap_uart_enable_irqs(int enable)
|
|
@@ -560,14 +562,17 @@ void omap_uart_enable_irqs(int enable)
|
|
list_for_each_entry(uart, &uart_list, node) {
|
|
if (enable) {
|
|
pm_runtime_put_sync(&uart->pdev->dev);
|
|
- ret = request_threaded_irq(uart->irq, NULL,
|
|
- omap_uart_interrupt,
|
|
- IRQF_SHARED,
|
|
- "serial idle",
|
|
- (void *)uart);
|
|
+ if (uart->irq) {
|
|
+ ret = request_threaded_irq(uart->irq, NULL,
|
|
+ omap_uart_interrupt,
|
|
+ IRQF_SHARED,
|
|
+ "serial idle",
|
|
+ (void *)uart);
|
|
+ }
|
|
} else {
|
|
pm_runtime_get_noresume(&uart->pdev->dev);
|
|
- free_irq(uart->irq, (void *)uart);
|
|
+ if (uart->irq)
|
|
+ free_irq(uart->irq, (void *)uart);
|
|
}
|
|
}
|
|
}
|