diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2005-10-30 07:57:31 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-10-30 07:57:31 -0500 |
commit | fbf30fbaa61595e9026f628f3913888b0df2b288 (patch) | |
tree | 9287895eebc60ec0c02b002a089c125e8741f6fb /drivers/scsi | |
parent | 6248e64721a4f3db9fbedd207206f47835acce44 (diff) |
[libata ata_piix] fix native mode probe, after recent updates
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/ata_piix.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/scsi/ata_piix.c b/drivers/scsi/ata_piix.c index b7fbf11f3fae..7f8aa1b552ce 100644 --- a/drivers/scsi/ata_piix.c +++ b/drivers/scsi/ata_piix.c | |||
@@ -622,7 +622,7 @@ static int piix_init_one (struct pci_dev *pdev, const struct pci_device_id *ent) | |||
622 | { | 622 | { |
623 | static int printed_version; | 623 | static int printed_version; |
624 | struct ata_port_info *port_info[2]; | 624 | struct ata_port_info *port_info[2]; |
625 | unsigned int combined = 0, n_ports = 1; | 625 | unsigned int combined = 0; |
626 | unsigned int pata_chan = 0, sata_chan = 0; | 626 | unsigned int pata_chan = 0, sata_chan = 0; |
627 | 627 | ||
628 | if (!printed_version++) | 628 | if (!printed_version++) |
@@ -634,7 +634,7 @@ static int piix_init_one (struct pci_dev *pdev, const struct pci_device_id *ent) | |||
634 | return -ENODEV; | 634 | return -ENODEV; |
635 | 635 | ||
636 | port_info[0] = &piix_port_info[ent->driver_data]; | 636 | port_info[0] = &piix_port_info[ent->driver_data]; |
637 | port_info[1] = NULL; | 637 | port_info[1] = &piix_port_info[ent->driver_data]; |
638 | 638 | ||
639 | if (port_info[0]->host_flags & PIIX_FLAG_AHCI) { | 639 | if (port_info[0]->host_flags & PIIX_FLAG_AHCI) { |
640 | u8 tmp; | 640 | u8 tmp; |
@@ -672,14 +672,13 @@ static int piix_init_one (struct pci_dev *pdev, const struct pci_device_id *ent) | |||
672 | port_info[sata_chan] = &piix_port_info[ent->driver_data]; | 672 | port_info[sata_chan] = &piix_port_info[ent->driver_data]; |
673 | port_info[sata_chan]->host_flags |= ATA_FLAG_SLAVE_POSS; | 673 | port_info[sata_chan]->host_flags |= ATA_FLAG_SLAVE_POSS; |
674 | port_info[pata_chan] = &piix_port_info[ich5_pata]; | 674 | port_info[pata_chan] = &piix_port_info[ich5_pata]; |
675 | n_ports++; | ||
676 | 675 | ||
677 | dev_printk(KERN_WARNING, &pdev->dev, | 676 | dev_printk(KERN_WARNING, &pdev->dev, |
678 | "combined mode detected (p=%u, s=%u)\n", | 677 | "combined mode detected (p=%u, s=%u)\n", |
679 | pata_chan, sata_chan); | 678 | pata_chan, sata_chan); |
680 | } | 679 | } |
681 | 680 | ||
682 | return ata_pci_init_one(pdev, port_info, n_ports); | 681 | return ata_pci_init_one(pdev, port_info, 2); |
683 | } | 682 | } |
684 | 683 | ||
685 | static int __init piix_init(void) | 684 | static int __init piix_init(void) |