Commit b890a32b authored by Linus Torvalds's avatar Linus Torvalds

IDE: Try to use PCI dma_mask only if the device actually _is_ PCI.

From Andries.
parent dd2ad358
...@@ -394,7 +394,7 @@ void ide_toggle_bounce(ide_drive_t *drive, int on) ...@@ -394,7 +394,7 @@ void ide_toggle_bounce(ide_drive_t *drive, int on)
if (on && drive->media == ide_disk) { if (on && drive->media == ide_disk) {
if (!PCI_DMA_BUS_IS_PHYS) if (!PCI_DMA_BUS_IS_PHYS)
addr = BLK_BOUNCE_ANY; addr = BLK_BOUNCE_ANY;
else else if (HWIF(drive)->pci_dev)
addr = HWIF(drive)->pci_dev->dma_mask; addr = HWIF(drive)->pci_dev->dma_mask;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment