diff options
Diffstat (limited to 'drivers/ide/pci/pdc202xx_old.c')
-rw-r--r-- | drivers/ide/pci/pdc202xx_old.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/ide/pci/pdc202xx_old.c b/drivers/ide/pci/pdc202xx_old.c index 06617ab16248..421a1f878efa 100644 --- a/drivers/ide/pci/pdc202xx_old.c +++ b/drivers/ide/pci/pdc202xx_old.c | |||
@@ -288,6 +288,7 @@ static void __devinit init_hwif_pdc202xx(ide_hwif_t *hwif) | |||
288 | 288 | ||
289 | static void __devinit init_dma_pdc202xx(ide_hwif_t *hwif, unsigned long dmabase) | 289 | static void __devinit init_dma_pdc202xx(ide_hwif_t *hwif, unsigned long dmabase) |
290 | { | 290 | { |
291 | struct pci_dev *dev = to_pci_dev(hwif->dev); | ||
291 | u8 udma_speed_flag = 0, primary_mode = 0, secondary_mode = 0; | 292 | u8 udma_speed_flag = 0, primary_mode = 0, secondary_mode = 0; |
292 | 293 | ||
293 | if (hwif->channel) { | 294 | if (hwif->channel) { |
@@ -300,14 +301,14 @@ static void __devinit init_dma_pdc202xx(ide_hwif_t *hwif, unsigned long dmabase) | |||
300 | secondary_mode = inb(dmabase | 0x1b); | 301 | secondary_mode = inb(dmabase | 0x1b); |
301 | printk(KERN_INFO "%s: (U)DMA Burst Bit %sABLED " \ | 302 | printk(KERN_INFO "%s: (U)DMA Burst Bit %sABLED " \ |
302 | "Primary %s Mode " \ | 303 | "Primary %s Mode " \ |
303 | "Secondary %s Mode.\n", hwif->cds->name, | 304 | "Secondary %s Mode.\n", pci_name(dev), |
304 | (udma_speed_flag & 1) ? "EN" : "DIS", | 305 | (udma_speed_flag & 1) ? "EN" : "DIS", |
305 | (primary_mode & 1) ? "MASTER" : "PCI", | 306 | (primary_mode & 1) ? "MASTER" : "PCI", |
306 | (secondary_mode & 1) ? "MASTER" : "PCI" ); | 307 | (secondary_mode & 1) ? "MASTER" : "PCI" ); |
307 | 308 | ||
308 | if (!(udma_speed_flag & 1)) { | 309 | if (!(udma_speed_flag & 1)) { |
309 | printk(KERN_INFO "%s: FORCING BURST BIT 0x%02x->0x%02x ", | 310 | printk(KERN_INFO "%s: FORCING BURST BIT 0x%02x->0x%02x ", |
310 | hwif->cds->name, udma_speed_flag, | 311 | pci_name(dev), udma_speed_flag, |
311 | (udma_speed_flag|1)); | 312 | (udma_speed_flag|1)); |
312 | outb(udma_speed_flag | 1, dmabase | 0x1f); | 313 | outb(udma_speed_flag | 1, dmabase | 0x1f); |
313 | printk("%sACTIVE\n", (inb(dmabase | 0x1f) & 1) ? "" : "IN"); | 314 | printk("%sACTIVE\n", (inb(dmabase | 0x1f) & 1) ? "" : "IN"); |