diff options
author | Tejun Heo <htejun@gmail.com> | 2007-02-02 02:22:31 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-02-21 04:58:17 -0500 |
commit | 909706a2477a92b6e0f3083ed4b944cb1d09acfa (patch) | |
tree | a867e3ebbcec3d135022850df24a8685ea64ac36 /drivers | |
parent | 7d47e8d4d4fb0c3d3bdc706759e70d5453b61ec3 (diff) |
libata: kill ATA_DNXFER_ANY
ATA_DNXFER_ANY isn't used anymore. Kill it.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ata/libata-core.c | 9 | ||||
-rw-r--r-- | drivers/ata/libata.h | 1 |
2 files changed, 0 insertions, 10 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index 24c6505f062d..407e7e15c252 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c | |||
@@ -2360,15 +2360,6 @@ int ata_down_xfermask_limit(struct ata_device *dev, unsigned int sel) | |||
2360 | udma_mask = 0; | 2360 | udma_mask = 0; |
2361 | break; | 2361 | break; |
2362 | 2362 | ||
2363 | case ATA_DNXFER_ANY: | ||
2364 | /* don't gear down to MWDMA from UDMA, go directly to PIO */ | ||
2365 | if (xfer_mask & ATA_MASK_UDMA) | ||
2366 | xfer_mask &= ~ATA_MASK_MWDMA; | ||
2367 | |||
2368 | highbit = fls(xfer_mask) - 1; | ||
2369 | xfer_mask &= ~(1 << highbit); | ||
2370 | break; | ||
2371 | |||
2372 | default: | 2363 | default: |
2373 | BUG(); | 2364 | BUG(); |
2374 | } | 2365 | } |
diff --git a/drivers/ata/libata.h b/drivers/ata/libata.h index 8533de67d87e..29bd7f80fc40 100644 --- a/drivers/ata/libata.h +++ b/drivers/ata/libata.h | |||
@@ -48,7 +48,6 @@ enum { | |||
48 | ATA_DNXFER_40C = 2, /* apply 40c cable limit */ | 48 | ATA_DNXFER_40C = 2, /* apply 40c cable limit */ |
49 | ATA_DNXFER_FORCE_PIO = 3, /* force PIO */ | 49 | ATA_DNXFER_FORCE_PIO = 3, /* force PIO */ |
50 | ATA_DNXFER_FORCE_PIO0 = 4, /* force PIO0 */ | 50 | ATA_DNXFER_FORCE_PIO0 = 4, /* force PIO0 */ |
51 | ATA_DNXFER_ANY = 5, /* speed down any */ | ||
52 | 51 | ||
53 | ATA_DNXFER_QUIET = (1 << 31), | 52 | ATA_DNXFER_QUIET = (1 << 31), |
54 | }; | 53 | }; |