diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-12-11 16:07:03 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-12-11 16:07:03 +0000 |
commit | ca6d8af89a72201986473d8cb000d091063097ca (patch) | |
tree | 637cf0fda218c2cec40e1323667040f1761432bc /sys/dev/pci/if_tht.c | |
parent | adaf58bdb03df7ca0d5ca5d5f4ff6f89cc946cae (diff) |
Replace mountroothook_establish(9) by config_mountroot(9) a narrower API
similar to config_defer(9).
ok mikeb@, deraadt@
Diffstat (limited to 'sys/dev/pci/if_tht.c')
-rw-r--r-- | sys/dev/pci/if_tht.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/pci/if_tht.c b/sys/dev/pci/if_tht.c index e2473a2735e..6f42954cd01 100644 --- a/sys/dev/pci/if_tht.c +++ b/sys/dev/pci/if_tht.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_tht.c,v 1.137 2015/11/25 03:09:59 dlg Exp $ */ +/* $OpenBSD: if_tht.c,v 1.138 2015/12/11 16:07:02 mpi Exp $ */ /* * Copyright (c) 2007 David Gwynne <dlg@openbsd.org> @@ -498,7 +498,7 @@ struct tht_softc { int tht_match(struct device *, void *, void *); void tht_attach(struct device *, struct device *, void *); -void tht_mountroot(void *); +void tht_mountroot(struct device *); int tht_intr(void *); struct cfattach tht_ca = { @@ -794,13 +794,13 @@ tht_attach(struct device *parent, struct device *self, void *aux) printf(": address %s\n", ether_sprintf(sc->sc_ac.ac_enaddr)); - mountroothook_establish(tht_mountroot, sc); + config_mountroot(self, tht_mountroot); } void -tht_mountroot(void *arg) +tht_mountroot(struct device *self) { - struct tht_softc *sc = arg; + struct tht_softc *sc = (struct tht_softc *)self; if (tht_fifo_alloc(sc, &sc->sc_txt, &tht_txt_desc) != 0) return; |