Skip to content

Commit

Permalink
libata: Use dev_name() for request_irq() to distinguish devices
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Tejun Heo <tj@kernel.org>
  • Loading branch information
Alexander Shiyan authored and Tejun Heo committed Aug 19, 2014
1 parent 515d9b2 commit 4f37b50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ata/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 4f37b50

Please sign in to comment.