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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <[email protected]>
Signed-off-by: Mark A. Greer <[email protected]>
---

 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux