Date: Fri, 2 Jun 2006 06:45:11 GMT From: Warner Losh <imp@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 98316 for review Message-ID: <200606020645.k526jB2G045208@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=98316 Change 98316 by imp@imp_lighthouse on 2006/06/02 06:45:08 minor simiplification. we don't really need this yet, if ever. Affected files ... .. //depot/projects/arm/src/sys/dev/sdhc/sdhc_pci.c#4 edit Differences ... ==== //depot/projects/arm/src/sys/dev/sdhc/sdhc_pci.c#4 (text+ko) ==== @@ -130,34 +130,6 @@ } static void -sdhc_driver_added(device_t dev, driver_t *driver) -{ -// struct sdhc_softc *sc = device_get_softc(dev); - device_t *devlist; - device_t kiddev; - int tmp; - int numdevs; - int wake = 0; - - DEVICE_IDENTIFY(driver, dev); - device_get_children(dev, &devlist, &numdevs); - for (tmp = 0; tmp < numdevs; tmp++) { - kiddev = devlist[tmp]; - if (device_get_state(kiddev) == DS_NOTPRESENT && - device_probe_and_attach(kiddev) == 0) - wake++; - } - free(devlist, M_TEMP); -#if 0 - if (wake > 0) { - mtx_lock(&sc->mtx); - cv_signal(&sc->cv); - mtx_unlock(&sc->mtx); - } -#endif -} - -static void sdhc_child_detached(device_t dev, device_t child) { } @@ -176,7 +148,7 @@ DEVMETHOD(bus_release_resource, sdhc_release_resource), DEVMETHOD(bus_activate_resource, sdhc_activate_resource), DEVMETHOD(bus_deactivate_resource, sdhc_deactivate_resource), - DEVMETHOD(bus_driver_added, sdhc_driver_added), + DEVMETHOD(bus_driver_added, bus_generic_driver_added), DEVMETHOD(bus_child_detached, sdhc_child_detached), // DEVMETHOD(bus_setup_intr, sdhc_setup_intr), // DEVMETHOD(bus_teardown_intr, sdhc_teardown_intr),
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606020645.k526jB2G045208>