• Jeff Garzik's avatar
    [libata] minor PCI IDE probe fixes and cleanups · c791c306
    Jeff Garzik authored
    * Replace needless 'n_ports > 2' check with a simple BUG_ON().
      No existing driver ever wants more than 2 ports.
    
    * Delete ATA_FLAG_NO_LEGACY check.  No current driver uses
      ata_pci_init_one(), that sets this flag.
    
    * Move PCI_CLASS_PROG register read below pci_enable_device()
    
    * Handle ata_device_add() failure
    Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
    c791c306
libata-sff.c 29.4 KB