aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/ide-dma.c')
-rw-r--r--drivers/ide/ide-dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-dma.c b/drivers/ide/ide-dma.c
index 82fa6107434..d5934fc8f85 100644
--- a/drivers/ide/ide-dma.c
+++ b/drivers/ide/ide-dma.c
@@ -370,7 +370,7 @@ static int dma_timer_expiry (ide_drive_t *drive)
370void ide_dma_host_set(ide_drive_t *drive, int on) 370void ide_dma_host_set(ide_drive_t *drive, int on)
371{ 371{
372 ide_hwif_t *hwif = HWIF(drive); 372 ide_hwif_t *hwif = HWIF(drive);
373 u8 unit = (drive->select.b.unit & 0x01); 373 u8 unit = drive->dn & 1;
374 u8 dma_stat = hwif->tp_ops->read_sff_dma_status(hwif); 374 u8 dma_stat = hwif->tp_ops->read_sff_dma_status(hwif);
375 375
376 if (on) 376 if (on)