From owner-p4-projects@FreeBSD.ORG Fri Jun 2 06:46:41 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 8486D16A9FF; Fri, 2 Jun 2006 06:46:41 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 25A3B16A8AE for ; Fri, 2 Jun 2006 06:46:41 +0000 (UTC) (envelope-from imp@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id C948043D4C for ; Fri, 2 Jun 2006 06:46:40 +0000 (GMT) (envelope-from imp@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k526jB55045211 for ; Fri, 2 Jun 2006 06:45:11 GMT (envelope-from imp@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k526jB2G045208 for perforce@freebsd.org; Fri, 2 Jun 2006 06:45:11 GMT (envelope-from imp@freebsd.org) Date: Fri, 2 Jun 2006 06:45:11 GMT Message-Id: <200606020645.k526jB2G045208@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to imp@freebsd.org using -f From: Warner Losh To: Perforce Change Reviews Cc: Subject: PERFORCE change 98316 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 06:46:41 -0000 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),