From: Tejun Heo Date: Fri, 2 Feb 2007 07:22:31 +0000 (+0900) Subject: libata: kill ATA_DNXFER_ANY X-Git-Tag: v2.6.21-rc2~25^2~46 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=909706a2477a92b6e0f3083ed4b944cb1d09acfa;p=linux-2.6-omap-h63xx.git libata: kill ATA_DNXFER_ANY ATA_DNXFER_ANY isn't used anymore. Kill it. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik --- diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index 24c6505f062..407e7e15c25 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) udma_mask = 0; break; - case ATA_DNXFER_ANY: - /* don't gear down to MWDMA from UDMA, go directly to PIO */ - if (xfer_mask & ATA_MASK_UDMA) - xfer_mask &= ~ATA_MASK_MWDMA; - - highbit = fls(xfer_mask) - 1; - xfer_mask &= ~(1 << highbit); - break; - default: BUG(); } diff --git a/drivers/ata/libata.h b/drivers/ata/libata.h index 8533de67d87..29bd7f80fc4 100644 --- a/drivers/ata/libata.h +++ b/drivers/ata/libata.h @@ -48,7 +48,6 @@ enum { ATA_DNXFER_40C = 2, /* apply 40c cable limit */ ATA_DNXFER_FORCE_PIO = 3, /* force PIO */ ATA_DNXFER_FORCE_PIO0 = 4, /* force PIO0 */ - ATA_DNXFER_ANY = 5, /* speed down any */ ATA_DNXFER_QUIET = (1 << 31), };