From b22ec706cf8520f8d0bf021343f90657055853e9 Mon Sep 17 00:00:00 2001 From: dyoung Date: Thu, 19 Jul 2007 00:00:09 +0000 Subject: [PATCH] Fix the kthread_create(9) call so this compiles again. --- sys/dev/spi/spiflash.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/dev/spi/spiflash.c b/sys/dev/spi/spiflash.c index cb893ebaa0e9..6a62f814f3c1 100644 --- a/sys/dev/spi/spiflash.c +++ b/sys/dev/spi/spiflash.c @@ -1,4 +1,4 @@ -/* $NetBSD: spiflash.c,v 1.4 2007/07/09 21:01:23 ad Exp $ */ +/* $NetBSD: spiflash.c,v 1.5 2007/07/19 00:00:09 dyoung Exp $ */ /*- * Copyright (c) 2006 Urbana-Champaign Independent Media Center. @@ -42,7 +42,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: spiflash.c,v 1.4 2007/07/09 21:01:23 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: spiflash.c,v 1.5 2007/07/19 00:00:09 dyoung Exp $"); #include #include @@ -89,7 +89,7 @@ struct spiflash_softc { struct bufq_state *sc_waitq; struct bufq_state *sc_workq; struct bufq_state *sc_doneq; - struct proc *sc_thread; + lwp_t *sc_thread; }; #define sc_getname sc_hw.sf_getname @@ -237,7 +237,7 @@ spiflash_attach(struct device *parent, struct device *self, void *aux) disk_attach(&sc->sc_dk); /* arrange to allocate the kthread */ - kthread_create(PRI_NONE, 0, NULL, spiflash_thread, arg, + kthread_create(PRI_NONE, 0, NULL, spiflash_thread, sc, &sc->sc_thread, "spiflash"); }