patch-2.3.30 linux/drivers/block/sl82c105.c
Next file: linux/drivers/cdrom/cdrom.c
Previous file: linux/drivers/block/md.c
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Thu Dec 2 15:41:39 1999
- Orig file:
v2.3.29/linux/drivers/block/sl82c105.c
- Orig date:
Fri Oct 22 13:21:47 1999
diff -u --recursive --new-file v2.3.29/linux/drivers/block/sl82c105.c linux/drivers/block/sl82c105.c
@@ -61,6 +61,7 @@
static int ide_set_drive_pio_mode(ide_drive_t *drive, byte pio)
{
ide_hwif_t *hwif = HWIF(drive);
+ ide_startstop_t startstop;
if (pio > 2) {
/* FIXME: I don't believe that this SELECT_DRIVE is required,
@@ -74,7 +75,7 @@
OUT_BYTE(0x03, IDE_FEATURE_REG);
OUT_BYTE(WIN_SETFEATURES, IDE_COMMAND_REG);
- if (ide_wait_stat(drive, DRIVE_READY,
+ if (ide_wait_stat(&startstop, drive, DRIVE_READY,
BUSY_STAT|DRQ_STAT|ERR_STAT, WAIT_CMD)) {
printk("%s: drive not ready for command\n",
drive->name);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)