[PATCH 2/3] serial: pl011: Do not hardcode the irq name

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

 



From: Fabio Estevam <fabio.estevam@xxxxxxxxxxxxx>

Instead of assigning the same name "uart-pl011" for all the pl011 instances, it
is better to assign it as 'dev_name(&dev->dev)' so that we associate the irq 
number to its corresponding port instance.

After this patch applied we get:
 
$ cat /proc/interrupts
...
236:        659         -  47  80074000.serial

Signed-off-by: Fabio Estevam <fabio.estevam@xxxxxxxxxxxxx>
---
 drivers/tty/serial/amba-pl011.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c
index 7dbe4fe..43075a3 100644
--- a/drivers/tty/serial/amba-pl011.c
+++ b/drivers/tty/serial/amba-pl011.c
@@ -2213,7 +2213,7 @@ static int pl011_probe(struct amba_device *dev, const struct amba_id *id)
 	writew(0xffff, uap->port.membase + UART011_ICR);
 
 	ret = devm_request_irq(&dev->dev, uap->port.irq, pl011_int, 0,
-			       "uart-pl011", uap);
+			       dev_name(&dev->dev), uap);
 	if (ret)
 		return ret;
 
-- 
1.9.1

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




[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux