linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] libata: Use dev_name() for request_irq() to distinguish devices
@ 2014-08-19  6:51 Alexander Shiyan
  2014-08-19 15:47 ` Tejun Heo
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Shiyan @ 2014-08-19  6:51 UTC (permalink / raw)
  To: linux-ide; +Cc: Tejun Heo, Alexander Shiyan

Use dev_name() instead of driver name for request_irq().
This will help to distinguish between multiple identical devices.

Before:
 CPU0
 5:      34425  clps711x-intc   5  pata_of_platform
 6:       6778  clps711x-intc   6  pata_of_platform

After:
 CPU0
 5:       2182  clps711x-intc   5  20000000.ide
 6:      11024  clps711x-intc   6  20100000.ide

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
 drivers/ata/libata-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index dbdc5d3..782d126 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -6227,7 +6227,7 @@ int ata_host_activate(struct ata_host *host, int irq,
 	}
 
 	rc = devm_request_irq(host->dev, irq, irq_handler, irq_flags,
-			      dev_driver_string(host->dev), host);
+			      dev_name(host->dev), host);
 	if (rc)
 		return rc;
 
-- 
1.8.5.5


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] libata: Use dev_name() for request_irq() to distinguish devices
  2014-08-19  6:51 [PATCH] libata: Use dev_name() for request_irq() to distinguish devices Alexander Shiyan
@ 2014-08-19 15:47 ` Tejun Heo
  0 siblings, 0 replies; 2+ messages in thread
From: Tejun Heo @ 2014-08-19 15:47 UTC (permalink / raw)
  To: Alexander Shiyan; +Cc: linux-ide

On Tue, Aug 19, 2014 at 10:51:04AM +0400, Alexander Shiyan wrote:
> Use dev_name() instead of driver name for request_irq().
> This will help to distinguish between multiple identical devices.
> 
> Before:
>  CPU0
>  5:      34425  clps711x-intc   5  pata_of_platform
>  6:       6778  clps711x-intc   6  pata_of_platform
> 
> After:
>  CPU0
>  5:       2182  clps711x-intc   5  20000000.ide
>  6:      11024  clps711x-intc   6  20100000.ide
> 
> Signed-off-by: Alexander Shiyan <shc_work@mail.ru>

Applied to libata/for-3.18.

Thanks.

-- 
tejun

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-08-19 15:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-19  6:51 [PATCH] libata: Use dev_name() for request_irq() to distinguish devices Alexander Shiyan
2014-08-19 15:47 ` Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).