From ca6d8af89a72201986473d8cb000d091063097ca Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Fri, 11 Dec 2015 16:07:03 +0000 Subject: Replace mountroothook_establish(9) by config_mountroot(9) a narrower API similar to config_defer(9). ok mikeb@, deraadt@ --- sys/dev/pci/if_tht.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sys/dev/pci/if_tht.c') 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 @@ -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; -- cgit v1.2.3