]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/ide/ide-dma.c
ide: use 'drive->dn & 1' instead of drive->select.b.unit
[linux-2.6-omap-h63xx.git] / drivers / ide / ide-dma.c
index 82fa6107434b700f476c2bc5353ab71415b44b76..d5934fc8f85fc76d2b2bbd785991669f07494801 100644 (file)
@@ -370,7 +370,7 @@ static int dma_timer_expiry (ide_drive_t *drive)
 void ide_dma_host_set(ide_drive_t *drive, int on)
 {
        ide_hwif_t *hwif        = HWIF(drive);
-       u8 unit                 = (drive->select.b.unit & 0x01);
+       u8 unit                 = drive->dn & 1;
        u8 dma_stat             = hwif->tp_ops->read_sff_dma_status(hwif);
 
        if (on)