diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-04-26 16:25:20 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-04-26 16:25:20 -0400 |
commit | 5e59c236846df444860ffc8b852117f9ff65c101 (patch) | |
tree | 187ce0b44b80e52e26a963196b1ab017764d3f2c /drivers/ide/pci/pdc202xx_old.c | |
parent | 0a79acd40d1ee8b6bf217a519eee422ed7e6da6b (diff) |
ide: remove ->cds field from ide_hwif_t (take 2)
* Use hwif->name instead of cds->name in ide_allocate_dma_engine().
* Use pci_name(dev) instead of cds->name in init_dma_pdc202xx().
* Remove no longer needed ->cds field from ide_hwif_t.
v2:
* scc_pata.c also needs to be updated now (noticed by Stephen Rothwell).
There should be no functional changes caused by this patch.
Cc: Kou Ishizaki <kou.ishizaki@toshiba.co.jp>
Cc: Akira Iguchi <akira2.iguchi@toshiba.co.jp>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
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"); |