diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-18 15:58:38 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-18 15:58:38 -0800 |
commit | b286e39207237e2f6929959372bf66d9a8d05a82 (patch) | |
tree | 0a88ef7c8a91b8cd1afbb85d4b60c9452cc0770e /drivers/ide/ide-lib.c | |
parent | bcb6ad1f5adb267c7b509f83e8edb16cc59d8500 (diff) | |
parent | 6593178dd46d64a5bcb0402a4f3acd95b0687abd (diff) | |
download | op-kernel-dev-b286e39207237e2f6929959372bf66d9a8d05a82.zip op-kernel-dev-b286e39207237e2f6929959372bf66d9a8d05a82.tar.gz |
Merge master.kernel.org:/pub/scm/linux/kernel/git/bart/ide-2.6
Diffstat (limited to 'drivers/ide/ide-lib.c')
-rw-r--r-- | drivers/ide/ide-lib.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/ide/ide-lib.c b/drivers/ide/ide-lib.c index b09a653..41d46db 100644 --- a/drivers/ide/ide-lib.c +++ b/drivers/ide/ide-lib.c @@ -410,10 +410,10 @@ void ide_toggle_bounce(ide_drive_t *drive, int on) { u64 addr = BLK_BOUNCE_HIGH; /* dma64_addr_t */ - if (on && drive->media == ide_disk) { - if (!PCI_DMA_BUS_IS_PHYS) - addr = BLK_BOUNCE_ANY; - else if (HWIF(drive)->pci_dev) + if (!PCI_DMA_BUS_IS_PHYS) { + addr = BLK_BOUNCE_ANY; + } else if (on && drive->media == ide_disk) { + if (HWIF(drive)->pci_dev) addr = HWIF(drive)->pci_dev->dma_mask; } |