Date: Tue, 30 Oct 2012 15:25:24 +0000 (UTC) From: Eitan Adler <eadler@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r242363 - in stable/8/sys/dev: e1000 ixgbe sound/pci Message-ID: <201210301525.q9UFPOY0019710@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: eadler Date: Tue Oct 30 15:25:23 2012 New Revision: 242363 URL: http://svn.freebsd.org/changeset/base/242363 Log: MFC r241917: Now that device disabling is generic, remove extraneous code from the device drivers that used to provide this feature. Approved by: cperciva (implicit) Modified: stable/8/sys/dev/e1000/if_lem.c stable/8/sys/dev/ixgbe/ixgbe.c stable/8/sys/dev/ixgbe/ixv.c stable/8/sys/dev/sound/pci/emu10kx.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/dev/ (props changed) stable/8/sys/dev/e1000/ (props changed) stable/8/sys/dev/ixgbe/ (props changed) stable/8/sys/dev/sound/ (props changed) stable/8/sys/dev/sound/pci/ (props changed) Modified: stable/8/sys/dev/e1000/if_lem.c ============================================================================== --- stable/8/sys/dev/e1000/if_lem.c Tue Oct 30 15:25:01 2012 (r242362) +++ stable/8/sys/dev/e1000/if_lem.c Tue Oct 30 15:25:23 2012 (r242363) @@ -387,11 +387,6 @@ lem_attach(device_t dev) INIT_DEBUGOUT("lem_attach: begin"); - if (resource_disabled("lem", device_get_unit(dev))) { - device_printf(dev, "Disabled by device hint\n"); - return (ENXIO); - } - adapter = device_get_softc(dev); adapter->dev = adapter->osdep.dev = dev; EM_CORE_LOCK_INIT(adapter, device_get_nameunit(dev)); Modified: stable/8/sys/dev/ixgbe/ixgbe.c ============================================================================== --- stable/8/sys/dev/ixgbe/ixgbe.c Tue Oct 30 15:25:01 2012 (r242362) +++ stable/8/sys/dev/ixgbe/ixgbe.c Tue Oct 30 15:25:23 2012 (r242363) @@ -389,11 +389,6 @@ ixgbe_attach(device_t dev) INIT_DEBUGOUT("ixgbe_attach: begin"); - if (resource_disabled("ixgbe", device_get_unit(dev))) { - device_printf(dev, "Disabled by device hint\n"); - return (ENXIO); - } - /* Allocate, clear, and link in our adapter structure */ adapter = device_get_softc(dev); adapter->dev = adapter->osdep.dev = dev; Modified: stable/8/sys/dev/ixgbe/ixv.c ============================================================================== --- stable/8/sys/dev/ixgbe/ixv.c Tue Oct 30 15:25:01 2012 (r242362) +++ stable/8/sys/dev/ixgbe/ixv.c Tue Oct 30 15:25:23 2012 (r242363) @@ -299,11 +299,6 @@ ixv_attach(device_t dev) INIT_DEBUGOUT("ixv_attach: begin"); - if (resource_disabled("ixgbe", device_get_unit(dev))) { - device_printf(dev, "Disabled by device hint\n"); - return (ENXIO); - } - /* Allocate, clear, and link in our adapter structure */ adapter = device_get_softc(dev); adapter->dev = adapter->osdep.dev = dev; Modified: stable/8/sys/dev/sound/pci/emu10kx.c ============================================================================== --- stable/8/sys/dev/sound/pci/emu10kx.c Tue Oct 30 15:25:01 2012 (r242362) +++ stable/8/sys/dev/sound/pci/emu10kx.c Tue Oct 30 15:25:23 2012 (r242363) @@ -3050,11 +3050,6 @@ emu_pci_attach(device_t dev) sc = device_get_softc(dev); unit = device_get_unit(dev); - if (resource_disabled("emu10kx", unit)) { - device_printf(dev, "disabled by kernel hints\n"); - return (ENXIO); /* XXX to avoid unit reuse */ - } - /* Get configuration */ sc->ctx = device_get_sysctl_ctx(dev);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210301525.q9UFPOY0019710>