mirror of
https://github.com/adulau/aha.git
synced 2024-12-30 12:46:17 +00:00
[PATCH] libata-sff: use our IRQ defines
Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
c961922b73
commit
daac0acd59
1 changed files with 2 additions and 2 deletions
|
@ -881,7 +881,7 @@ static struct ata_probe_ent *ata_pci_init_legacy_port(struct pci_dev *pdev,
|
|||
probe_ent->private_data = port[0]->private_data;
|
||||
|
||||
if (port_mask & ATA_PORT_PRIMARY) {
|
||||
probe_ent->irq = 14;
|
||||
probe_ent->irq = ATA_PRIMARY_IRQ;
|
||||
probe_ent->port[0].cmd_addr = ATA_PRIMARY_CMD;
|
||||
probe_ent->port[0].altstatus_addr =
|
||||
probe_ent->port[0].ctl_addr = ATA_PRIMARY_CTL;
|
||||
|
@ -896,7 +896,7 @@ static struct ata_probe_ent *ata_pci_init_legacy_port(struct pci_dev *pdev,
|
|||
|
||||
if (port_mask & ATA_PORT_SECONDARY) {
|
||||
if (probe_ent->irq)
|
||||
probe_ent->irq2 = 15;
|
||||
probe_ent->irq2 = ATA_SECONDARY_IRQ;
|
||||
else
|
||||
probe_ent->irq = 15;
|
||||
probe_ent->port[1].cmd_addr = ATA_SECONDARY_CMD;
|
||||
|
|
Loading…
Reference in a new issue