summaryrefslogtreecommitdiffstats
path: root/sys/dev/ppc
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2003-03-02 16:54:40 +0000
committerdes <des@FreeBSD.org>2003-03-02 16:54:40 +0000
commit2756b6c9641bd9899a346582c191310de25cccc5 (patch)
tree351747321ab136aa733f670c4c2c235b3639bc1e /sys/dev/ppc
parent3780674329cabab230b12923047c8aa84e4f05fc (diff)
downloadFreeBSD-src-2756b6c9641bd9899a346582c191310de25cccc5.zip
FreeBSD-src-2756b6c9641bd9899a346582c191310de25cccc5.tar.gz
More low-hanging fruit: kill caddr_t in calls to wakeup(9) / [mt]sleep(9).
Diffstat (limited to 'sys/dev/ppc')
-rw-r--r--sys/dev/ppc/ppc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ppc/ppc.c b/sys/dev/ppc/ppc.c
index 52c2f6a..690d0cc 100644
--- a/sys/dev/ppc/ppc.c
+++ b/sys/dev/ppc/ppc.c
@@ -1614,7 +1614,7 @@ ppcintr(void *arg)
ppc->ppc_dmastat = PPC_DMA_COMPLETE;
/* wakeup the waiting process */
- wakeup((caddr_t)ppc);
+ wakeup(ppc);
}
}
} else if (ppc->ppc_irqstat & PPC_IRQ_FIFO) {
@@ -1720,7 +1720,7 @@ ppc_write(device_t dev, char *buf, int len, int how)
*/
do {
/* release CPU */
- error = tsleep((caddr_t)ppc,
+ error = tsleep(ppc,
PPBPRI | PCATCH, "ppcdma", 0);
} while (error == EWOULDBLOCK);
@@ -1752,7 +1752,7 @@ ppc_write(device_t dev, char *buf, int len, int how)
#ifdef PPC_DEBUG
printf("Z");
#endif
- error = tsleep((caddr_t)ppc, PPBPRI | PCATCH, "ppcfifo", hz/100);
+ error = tsleep(ppc, PPBPRI | PCATCH, "ppcfifo", hz/100);
if (error != EWOULDBLOCK) {
#ifdef PPC_DEBUG
printf("I");
OpenPOWER on IntegriCloud