The following patch fixes some compile errors in ide-pmac.c. Please
apply.
Paul.
diff -urN linux-2.5/drivers/ide/ide-pmac.c pmac-2.5/drivers/ide/ide-pmac.c
--- linux-2.5/drivers/ide/ide-pmac.c Fri Jun 28 10:35:07 2002
+++ pmac-2.5/drivers/ide/ide-pmac.c Tue Jun 25 15:06:34 2002
@@ -256,7 +256,7 @@
static void pmac_ide_setup_dma(struct device_node *np, int ix);
static void pmac_udma_enable(struct ata_device *drive, int on, int verbose);
-static int pmac_udma_start(struct ata_device *drive, struct request *rq);
+static void pmac_udma_start(struct ata_device *drive, struct request *rq);
static int pmac_udma_stop(struct ata_device *drive);
static int pmac_udma_init(struct ata_device *drive, struct request *rq);
static int pmac_udma_irq_status(struct ata_device *drive);
@@ -1340,7 +1340,7 @@
ide_toggle_bounce(drive, 0);
}
-static int pmac_udma_start(struct ata_device *drive, struct request *rq)
+static void pmac_udma_start(struct ata_device *drive, struct request *rq)
{
int ix, ata4;
volatile struct dbdma_regs *dma;
@@ -1350,7 +1350,7 @@
*/
ix = pmac_ide_find(drive);
if (ix < 0)
- return ide_stopped;
+ return;
dma = pmac_ide[ix].dma_regs;
ata4 = (pmac_ide[ix].kind == controller_kl_ata4 ||
@@ -1359,8 +1359,6 @@
out_le32(&dma->control, (RUN << 16) | RUN);
/* Make sure it gets to the controller right now */
(void)in_le32(&dma->control);
-
- return ide_started;
}
static int pmac_udma_stop(struct ata_device *drive)
@@ -1490,10 +1488,10 @@
* active bit is still set */
set_bit(IDE_DMA, drive->channel->active);
// if (drive->waiting_for_dma >= DMA_WAIT_TIMEOUT) {
-// printk(KERN_WARNING "ide%d, timeout waiting \
- for dbdma command stop\n", ix);
- return 1;
- }
+// printk(KERN_WARNING "ide%d, timeout waiting "
+// "for dbdma command stop\n", ix);
+// return 1;
+// }
udelay(1);
return 0;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/