]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/ide/pci/serverworks.c
ide: use 'drive->dn & 1' instead of drive->select.b.unit
[linux-2.6-omap-h63xx.git] / drivers / ide / pci / serverworks.c
index 3dff2aea317e88ae261d5050b9b0ae3c1023dd7e..7fac80192f3b0ea2e392306537ec360616e76ace 100644 (file)
@@ -153,7 +153,7 @@ static void svwks_set_dma_mode(ide_drive_t *drive, const u8 speed)
 
        ide_hwif_t *hwif        = HWIF(drive);
        struct pci_dev *dev     = to_pci_dev(hwif->dev);
-       u8 unit                 = (drive->select.b.unit & 0x01);
+       u8 unit                 = drive->dn & 1;
 
        u8 ultra_enable  = 0, ultra_timing = 0, dma_timing = 0;