Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 58169
b: refs/heads/master
c: 4031826
h: refs/heads/master
i:
  58167: 2017eda
v: v3
  • Loading branch information
Tejun Heo authored and Jeff Garzik committed Jul 3, 2007
1 parent 2be078a commit c52c93f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: aa2e09da2a332e748532aa2a71b090e7e7c3203d
refs/heads/master: 4031826b3ca40982880f6b9f2282c7d7fad60d77
6 changes: 3 additions & 3 deletions trunk/drivers/ata/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -6423,14 +6423,14 @@ int ata_host_activate(struct ata_host *host, int irq,
if (rc)
return rc;

/* Used to print device info at probe */
host->irq = irq;

rc = ata_host_register(host, sht);
/* if failed, just free the IRQ and leave ports alone */
if (rc)
devm_free_irq(host->dev, irq, host);

/* Used to print device info at probe */
host->irq = irq;

return rc;
}

Expand Down
5 changes: 3 additions & 2 deletions trunk/drivers/ata/libata-sff.c
Original file line number Diff line number Diff line change
Expand Up @@ -1065,10 +1065,11 @@ int ata_pci_init_one(struct pci_dev *pdev,
if (rc)
goto err_out;

if (!legacy_mode)
if (!legacy_mode) {
rc = devm_request_irq(dev, pdev->irq, pi->port_ops->irq_handler,
IRQF_SHARED, DRV_NAME, host);
else {
host->irq = pdev->irq;
} else {
irq_handler_t handler[2] = { host->ops->irq_handler,
host->ops->irq_handler };
unsigned int irq_flags[2] = { IRQF_SHARED, IRQF_SHARED };
Expand Down
5 changes: 5 additions & 0 deletions trunk/drivers/ata/pata_cs5520.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,11 @@ static int __devinit cs5520_init_one(struct pci_dev *pdev, const struct pci_devi
ata_interrupt, 0, DRV_NAME, host);
if (rc)
return rc;

if (i == 0)
host->irq = irq[0];
else
host->irq2 = irq[1];
}

return ata_host_register(host, &cs5520_sht);
Expand Down

0 comments on commit c52c93f

Please sign in to comment.