diff options
author | Olof Johansson <olof@lixom.net> | 2007-06-03 19:35:10 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-06-09 22:40:28 -0400 |
commit | 22888423b3b1b96573250671afb5b72ea4364902 (patch) | |
tree | 9fd07188282a18f1e283602b380bc7cf3965dc2f /drivers/ata | |
parent | bd9c5a39e4141678bd6242e5b74bfe39d8d0be35 (diff) |
libata: fix probe time irq printouts
Most drivers don't seem to fill out the host->irq field, resulting in the
wrong (no) irq being reported at probe time. For example, sil24 on my system:
ata1: SATA max UDMA/100 cmd 0xd00008009001f000 ctl 0x0000000000000000 bmdma 0x0000000000000000 irq 0
ata2: SATA max UDMA/100 cmd 0xd000080090021000 ctl 0x0000000000000000 bmdma 0x0000000000000000 irq 0
Since they're allocated and set up in ata_host_activate(), just save
them away there.
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/libata-core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index 6a8a5179ceef..c90c8e0fc49c 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c | |||
@@ -6435,6 +6435,9 @@ int ata_host_activate(struct ata_host *host, int irq, | |||
6435 | if (rc) | 6435 | if (rc) |
6436 | devm_free_irq(host->dev, irq, host); | 6436 | devm_free_irq(host->dev, irq, host); |
6437 | 6437 | ||
6438 | /* Used to print device info at probe */ | ||
6439 | host->irq = irq; | ||
6440 | |||
6438 | return rc; | 6441 | return rc; |
6439 | } | 6442 | } |
6440 | 6443 | ||