]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/ide/pci/scc_pata.c
ide: use 'drive->dn & 1' instead of drive->select.b.unit
[linux-2.6-omap-h63xx.git] / drivers / ide / pci / scc_pata.c
index 62fa31409a333431e24bc9798cdb169215561c9e..0eced0ae2e86965b94faed6e512206a5d0b3d447 100644 (file)
@@ -291,7 +291,7 @@ static void scc_set_dma_mode(ide_drive_t *drive, const u8 speed)
 static void scc_dma_host_set(ide_drive_t *drive, int on)
 {
        ide_hwif_t *hwif = drive->hwif;
-       u8 unit = (drive->select.b.unit & 0x01);
+       u8 unit = drive->dn & 1;
        u8 dma_stat = scc_ide_inb(hwif->dma_base + 4);
 
        if (on)