patch-2.3.38 linux/drivers/block/cy82c693.c
Next file: linux/drivers/block/floppy.c
Previous file: linux/drivers/block/cpqarray.c
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Fri Jan 7 11:53:06 2000
- Orig file:
v2.3.37/linux/drivers/block/cy82c693.c
- Orig date:
Mon Dec 20 18:48:21 1999
diff -u --recursive --new-file v2.3.37/linux/drivers/block/cy82c693.c linux/drivers/block/cy82c693.c
@@ -274,8 +274,13 @@
unsigned int addrCtrl;
/* select primary or secondary channel */
- if (hwif->index > 0) /* drive is on the secondary channel */
- dev = dev->next;
+ if (hwif->index > 0) { /* drive is on the secondary channel */
+ dev = pci_find_slot(dev, dev->devfn+1);
+ if (!dev) {
+ printk(KERN_ERR "%s: tune_drive: Cannot find secondary interface!\n");
+ return;
+ }
+ }
#if CY82C693_DEBUG_LOGS
/* for debug let's show the register values */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)