ata_piix: Remove ugly layering violation

A while ago I modified the libata code so that drivers can return -ENOENT
for unknown ports not fiddle with the EH flags and print stuff directly.
Somewhere along the line ata_piix didn't get fully converted.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>

authored by Alan Cox and committed by Jeff Garzik 9a2eb709 d0035aef

+3 -8
+3 -8
drivers/ata/ata_piix.c
··· 93 #include <linux/libata.h> 94 95 #define DRV_NAME "ata_piix" 96 - #define DRV_VERSION "2.10" 97 98 enum { 99 PIIX_IOCFG = 0x54, /* IDE I/O configuration register */ ··· 667 { 668 struct pci_dev *pdev = to_pci_dev(ap->host->dev); 669 670 - if (!pci_test_config_bits(pdev, &piix_enable_bits[ap->port_no])) { 671 - ata_port_printk(ap, KERN_INFO, "port disabled. ignoring.\n"); 672 - ap->eh_context.i.action &= ~ATA_EH_RESET_MASK; 673 - return 0; 674 - } 675 - 676 ich_pata_cbl_detect(ap); 677 - 678 return ata_std_prereset(ap); 679 } 680
··· 93 #include <linux/libata.h> 94 95 #define DRV_NAME "ata_piix" 96 + #define DRV_VERSION "2.10ac1" 97 98 enum { 99 PIIX_IOCFG = 0x54, /* IDE I/O configuration register */ ··· 667 { 668 struct pci_dev *pdev = to_pci_dev(ap->host->dev); 669 670 + if (!pci_test_config_bits(pdev, &piix_enable_bits[ap->port_no])) 671 + return -ENOENT; 672 ich_pata_cbl_detect(ap); 673 return ata_std_prereset(ap); 674 } 675