summaryrefslogtreecommitdiffstats
path: root/sys/dev/pst
diff options
context:
space:
mode:
authorstefanf <stefanf@FreeBSD.org>2004-10-03 16:06:46 +0000
committerstefanf <stefanf@FreeBSD.org>2004-10-03 16:06:46 +0000
commitc9e430855440a50a764da457509ea1459bba9530 (patch)
tree1bf51a0fb6e16abec78d945c1ca1d5b15db8d615 /sys/dev/pst
parent06aa92a1b805a79ccf1e4d918298ab3c7b078a39 (diff)
downloadFreeBSD-src-c9e430855440a50a764da457509ea1459bba9530.zip
FreeBSD-src-c9e430855440a50a764da457509ea1459bba9530.tar.gz
Use the correct type for iop_attach().
Diffstat (limited to 'sys/dev/pst')
-rw-r--r--sys/dev/pst/pst-iop.c8
-rw-r--r--sys/dev/pst/pst-iop.h2
2 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/pst/pst-iop.c b/sys/dev/pst/pst-iop.c
index a9c47e8..1b017fd 100644
--- a/sys/dev/pst/pst-iop.c
+++ b/sys/dev/pst/pst-iop.c
@@ -89,8 +89,8 @@ iop_init(struct iop_softc *sc)
printf("pstiop: malloc of delayed attach hook failed\n");
return 0;
}
- sc->iop_delayed_attach->ich_func = (void *)iop_attach;
- sc->iop_delayed_attach->ich_arg = (void *)sc;
+ sc->iop_delayed_attach->ich_func = iop_attach;
+ sc->iop_delayed_attach->ich_arg = sc;
if (config_intrhook_establish(sc->iop_delayed_attach)) {
printf("pstiop: config_intrhook_establish failed\n");
free(sc->iop_delayed_attach, M_PSTIOP);
@@ -99,10 +99,12 @@ iop_init(struct iop_softc *sc)
}
void
-iop_attach(struct iop_softc *sc)
+iop_attach(void *arg)
{
+ struct iop_softc *sc;
int i;
+ sc = arg;
if (sc->iop_delayed_attach) {
config_intrhook_disestablish(sc->iop_delayed_attach);
free(sc->iop_delayed_attach, M_PSTIOP);
diff --git a/sys/dev/pst/pst-iop.h b/sys/dev/pst/pst-iop.h
index 57f0504..59314ce 100644
--- a/sys/dev/pst/pst-iop.h
+++ b/sys/dev/pst/pst-iop.h
@@ -631,7 +631,7 @@ struct i2o_bsa_cache_flush_message {
/* prototypes */
int iop_init(struct iop_softc *);
-void iop_attach(struct iop_softc *);
+void iop_attach(void *);
void iop_intr(void *);
int iop_reset(struct iop_softc *);
int iop_init_outqueue(struct iop_softc *);
OpenPOWER on IntegriCloud