Title: [3952] trunk: A more elegant way to patch 8250.c,
as suggested by Mike Frysinger
- Revision
- 3952
- Author
- ea1crb
- Date
- 2007-11-28 13:05:26 -0600 (Wed, 28 Nov 2007)
Log Message
A more elegant way to patch 8250.c, as suggested by Mike Frysinger
Diffstat
drivers/serial/8250.c | 6 ++----
include/asm-blackfin/serial.h | 5 +++++
2 files changed, 7 insertions(+), 4 deletions(-)
Modified Paths
Added Paths
Diff
Modified: trunk/drivers/serial/8250.c (3951 => 3952)
--- trunk/drivers/serial/8250.c 2007-11-28 08:56:52 UTC (rev 3951)
+++ trunk/drivers/serial/8250.c 2007-11-28 19:05:26 UTC (rev 3952)
@@ -92,9 +92,7 @@
*/
#define CONFIG_HUB6 1
-#ifndef CONFIG_BLACKFIN
#include <asm/serial.h>
-#endif
/*
* SERIAL_PORT_DFNS tells us about built-in ports that have no
@@ -1546,8 +1544,8 @@
i->head = &up->list;
spin_unlock_irq(&i->lock);
-#ifdef CONFIG_BLACKFIN
- irq_flags |= IRQF_TRIGGER_HIGH;
+#ifdef SERIAL_EXTRA_IRQ_FLAGS
+ irq_flags |= SERIAL_EXTRA_IRQ_FLAGS;
#endif
ret = request_irq(up->port.irq, serial8250_interrupt,
Added: trunk/include/asm-blackfin/serial.h (0 => 3952)
--- trunk/include/asm-blackfin/serial.h (rev 0)
+++ trunk/include/asm-blackfin/serial.h 2007-11-28 19:05:26 UTC (rev 3952)
@@ -0,0 +1,5 @@
+/*
+ * include/asm-blackfin/serial.h
+ */
+
+#define SERIAL_EXTRA_IRQ_FLAGS IRQF_TRIGGER_HIGH
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits