diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2004-12-06 19:51:42 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2004-12-06 19:51:42 +0000 |
commit | 6dd2a3595cbdbe4a0ee513c4c3c438b69d0cac72 (patch) | |
tree | 7a5343d50cd178f7f023f127d2df1c453f7c65b0 /sys/arch/alpha/pci | |
parent | d7ed525bc85ac1c6918678f1d9e4d9a22c876a55 (diff) |
Use config_defer().
From NetBSD
ok miod@
Diffstat (limited to 'sys/arch/alpha/pci')
-rw-r--r-- | sys/arch/alpha/pci/sio.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/alpha/pci/sio.c b/sys/arch/alpha/pci/sio.c index e8580c600de..3e489ca388e 100644 --- a/sys/arch/alpha/pci/sio.c +++ b/sys/arch/alpha/pci/sio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sio.c,v 1.29 2004/06/28 02:28:43 aaron Exp $ */ +/* $OpenBSD: sio.c,v 1.30 2004/12/06 19:51:41 brad Exp $ */ /* $NetBSD: sio.c,v 1.15 1996/12/05 01:39:36 cgd Exp $ */ /* @@ -100,7 +100,7 @@ void sio_eisa_attach_hook(struct device *, struct device *, struct eisabus_attach_args *); int sio_eisa_maxslots(void *); int sio_eisa_intr_map(void *, u_int, eisa_intr_handle_t *); -void sio_bridge_callback(void *); +void sio_bridge_callback(struct device *); int siomatch(parent, match, aux) @@ -170,14 +170,14 @@ sioattach(parent, self, aux) evcount_attach(&sio_intr_count, self->dv_xname, NULL, &evcount_intr); - set_pci_isa_bridge_callback(sio_bridge_callback, sc); + config_defer(self, sio_bridge_callback); } void -sio_bridge_callback(v) - void *v; +sio_bridge_callback(self) + struct device *self; { - struct sio_softc *sc = v; + struct sio_softc *sc = (struct sio_softc *)self; struct alpha_eisa_chipset ec; struct alpha_isa_chipset ic; union sio_attach_args sa; |