aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_sl82c105.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/pata_sl82c105.c')
-rw-r--r--drivers/ata/pata_sl82c105.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/pata_sl82c105.c b/drivers/ata/pata_sl82c105.c
index a40345674378..f2fa158d07ca 100644
--- a/drivers/ata/pata_sl82c105.c
+++ b/drivers/ata/pata_sl82c105.c
@@ -139,13 +139,13 @@ static void sl82c105_set_dmamode(struct ata_port *ap, struct ata_device *adev)
139{ 139{
140 switch(adev->dma_mode) { 140 switch(adev->dma_mode) {
141 case XFER_MW_DMA_0: 141 case XFER_MW_DMA_0:
142 sl82c105_configure_piomode(ap, adev, 1); 142 sl82c105_configure_piomode(ap, adev, 0);
143 break; 143 break;
144 case XFER_MW_DMA_1: 144 case XFER_MW_DMA_1:
145 sl82c105_configure_piomode(ap, adev, 3); 145 sl82c105_configure_piomode(ap, adev, 3);
146 break; 146 break;
147 case XFER_MW_DMA_2: 147 case XFER_MW_DMA_2:
148 sl82c105_configure_piomode(ap, adev, 3); 148 sl82c105_configure_piomode(ap, adev, 4);
149 break; 149 break;
150 default: 150 default:
151 BUG(); 151 BUG();