aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide')
-rw-r--r--drivers/ide/ide-dma.c2
-rw-r--r--drivers/ide/pci/pdc202xx_old.c5
-rw-r--r--drivers/ide/pci/scc_pata.c1
-rw-r--r--drivers/ide/setup-pci.c1
4 files changed, 4 insertions, 5 deletions
diff --git a/drivers/ide/ide-dma.c b/drivers/ide/ide-dma.c
index 31a71136bbae..b38a9dfb3146 100644
--- a/drivers/ide/ide-dma.c
+++ b/drivers/ide/ide-dma.c
@@ -833,7 +833,7 @@ static int ide_allocate_dma_engine(ide_hwif_t *hwif)
833 return 0; 833 return 0;
834 834
835 printk(KERN_ERR "%s: -- Error, unable to allocate DMA table.\n", 835 printk(KERN_ERR "%s: -- Error, unable to allocate DMA table.\n",
836 hwif->cds->name); 836 hwif->name);
837 837
838 return 1; 838 return 1;
839} 839}
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
289static void __devinit init_dma_pdc202xx(ide_hwif_t *hwif, unsigned long dmabase) 289static 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");
diff --git a/drivers/ide/pci/scc_pata.c b/drivers/ide/pci/scc_pata.c
index e7f8ebc94b05..c30b0c44c705 100644
--- a/drivers/ide/pci/scc_pata.c
+++ b/drivers/ide/pci/scc_pata.c
@@ -541,7 +541,6 @@ static int scc_ide_setup_pci_device(struct pci_dev *dev,
541 hw.chipset = ide_pci; 541 hw.chipset = ide_pci;
542 ide_init_port_hw(hwif, &hw); 542 ide_init_port_hw(hwif, &hw);
543 hwif->dev = &dev->dev; 543 hwif->dev = &dev->dev;
544 hwif->cds = d;
545 544
546 idx[0] = hwif->index; 545 idx[0] = hwif->index;
547 546
diff --git a/drivers/ide/setup-pci.c b/drivers/ide/setup-pci.c
index 8812eaa7f169..26997648bf00 100644
--- a/drivers/ide/setup-pci.c
+++ b/drivers/ide/setup-pci.c
@@ -322,7 +322,6 @@ static ide_hwif_t *ide_hwif_configure(struct pci_dev *dev,
322 ide_init_port_hw(hwif, &hw); 322 ide_init_port_hw(hwif, &hw);
323 323
324 hwif->dev = &dev->dev; 324 hwif->dev = &dev->dev;
325 hwif->cds = d;
326 325
327 return hwif; 326 return hwif;
328} 327}