summaryrefslogtreecommitdiffstats
path: root/drivers/block/cy82c693.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/cy82c693.c')
-rw-r--r--drivers/block/cy82c693.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/block/cy82c693.c b/drivers/block/cy82c693.c
index 8756713ac..412f403c3 100644
--- a/drivers/block/cy82c693.c
+++ b/drivers/block/cy82c693.c
@@ -275,9 +275,9 @@ static void cy82c693_tune_drive (ide_drive_t *drive, byte pio)
/* select primary or secondary channel */
if (hwif->index > 0) { /* drive is on the secondary channel */
- dev = pci_find_slot(dev, dev->devfn+1);
+ dev = pci_find_slot(dev->bus->number, dev->devfn+1);
if (!dev) {
- printk(KERN_ERR "%s: tune_drive: Cannot find secondary interface!\n");
+ printk(KERN_ERR "%s: tune_drive: Cannot find secondary interface!\n", drive->name);
return;
}
}
@@ -434,8 +434,6 @@ void __init ide_init_cy82c693(ide_hwif_t *hwif)
hwif->tuneproc = &cy82c693_tune_drive;
if (hwif->dma_base) {
hwif->dmaproc = &cy82c693_dmaproc;
- hwif->drives[0].autotune = 0;
- hwif->drives[1].autotune = 0;
} else {
hwif->drives[0].autotune = 1;
hwif->drives[1].autotune = 1;