[PATCH 2.6.16-rc6-mm2] serial: mpsc driver passes bad devname to request_irq()

From: Mark A. Greer
Date: Wed Mar 22 2006 - 13:34:30 EST


The devname passed to request_irq() contained a '/' which is wrong. At
a minimum, the '/' prevented the devname from showing up in
/proc/irq/<irq>/<devname>. This patch replaces the '/' with a '-' to
fixes that problem.

Reported-by: Stephane Chazelas <Stephane@xxxxxxxxxxxxx>
Signed-off-by: Mark A. Greer <mgreer@xxxxxxxxxx>
---

mpsc.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
---

diff -Nurp linux-2.6.16-rc6-mm2/drivers/serial/mpsc.c linux-2.6.16-rc6-mm2-mpsc_namefix/drivers/serial/mpsc.c
--- linux-2.6.16-rc6-mm2/drivers/serial/mpsc.c 2006-03-11 15:12:55.000000000 -0700
+++ linux-2.6.16-rc6-mm2-mpsc_namefix/drivers/serial/mpsc.c 2006-03-22 10:42:42.000000000 -0700
@@ -1165,7 +1165,7 @@ mpsc_startup(struct uart_port *port)
flag = SA_SHIRQ;

if (request_irq(pi->port.irq, mpsc_sdma_intr, flag,
- "mpsc/sdma", pi))
+ "mpsc-sdma", pi))
printk(KERN_ERR "MPSC: Can't get SDMA IRQ %d\n",
pi->port.irq);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/