Use the correct type for iop_attach().
This commit is contained in:
parent
5a9e72a72b
commit
b3fc3d57e5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=136094
@ -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);
|
||||
|
@ -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 *);
|
||||
|
Loading…
Reference in New Issue
Block a user