Commit 63fe6a72 authored by Alan Cox's avatar Alan Cox Committed by Dave Jones

[PATCH] PATCH: fix wrong check in BUG() test for UDMA on serverworks

Otherwise a UDMA CD-ROM is correctly set up and then panics the kernel 8(
The UDMA rule is on disks not on CD
parent eeb7f4ae
......@@ -263,7 +263,7 @@ static int svwks_tune_chipset (ide_drive_t *drive, u8 xferspeed)
Our code assumes we never _ever_ do this on an OSB4 */
if(dev->device == PCI_DEVICE_ID_SERVERWORKS_OSB4 &&
drive->media != ide_disk && speed >= XFER_UDMA_0)
drive->media == ide_disk && speed >= XFER_UDMA_0)
BUG();
pci_read_config_byte(dev, drive_pci[drive->dn], &pio_timing);
......
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