diff options
Diffstat (limited to 'drivers/ide/pci/ns87415.c')
-rw-r--r-- | drivers/ide/pci/ns87415.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ide/pci/ns87415.c b/drivers/ide/pci/ns87415.c index 99e98e5e271c..61a143661ee0 100644 --- a/drivers/ide/pci/ns87415.c +++ b/drivers/ide/pci/ns87415.c | |||
@@ -160,8 +160,8 @@ static void ns87415_prepare_drive (ide_drive_t *drive, unsigned int use_dma) | |||
160 | new |= bit; | 160 | new |= bit; |
161 | 161 | ||
162 | /* Select PIO or DMA, DMA may only be selected for one drive/channel. */ | 162 | /* Select PIO or DMA, DMA may only be selected for one drive/channel. */ |
163 | bit = 1 << (20 + drive->select.b.unit + (hwif->channel << 1)); | 163 | bit = 1 << (20 + (drive->dn & 1) + (hwif->channel << 1)); |
164 | other = 1 << (20 + (1 - drive->select.b.unit) + (hwif->channel << 1)); | 164 | other = 1 << (20 + (1 - (drive->dn & 1)) + (hwif->channel << 1)); |
165 | new = use_dma ? ((new & ~other) | bit) : (new & ~bit); | 165 | new = use_dma ? ((new & ~other) | bit) : (new & ~bit); |
166 | 166 | ||
167 | if (new != *old) { | 167 | if (new != *old) { |