]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
libata-sff: remove dead code
authorPaul Bolle <pebolle@tiscali.nl>
Sun, 4 May 2014 11:50:29 +0000 (13:50 +0200)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:17:24 +0000 (21:17 -0600)
Ever since v2.6.19 the code contains a check for CONFIG_NO_ATA_LEGACY.
But that macro has never been defined. Apparently no one ran into
problems on platforms that do not support compatibility mode. So remove
this code that has been dead for over seven years.

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Tejun Heo <tj@kernel.org>
(cherry picked from commit 8612b4b4f964b935029c3388c8484a66e41bf71e)

drivers/ata/libata-sff.c

index 37acda6fa7e4b4ad192767985692e31118968d24..db90aa35cb71e9456d176dcdd1214b760165cc4c 100644 (file)
@@ -2431,15 +2431,6 @@ int ata_pci_sff_activate_host(struct ata_host *host,
                mask = (1 << 2) | (1 << 0);
                if ((tmp8 & mask) != mask)
                        legacy_mode = 1;
-#if defined(CONFIG_NO_ATA_LEGACY)
-               /* Some platforms with PCI limits cannot address compat
-                  port space. In that case we punt if their firmware has
-                  left a device in compatibility mode */
-               if (legacy_mode) {
-                       printk(KERN_ERR "ata: Compatibility mode ATA is not supported on this platform, skipping.\n");
-                       return -EOPNOTSUPP;
-               }
-#endif
        }
 
        if (!devres_open_group(dev, NULL, GFP_KERNEL))