Now that device disabling is generic, remove extraneous code from the
device drivers that used to provide this feature. This is a subset of 241856 (which was reverted) Reviewed by: des Approved by: cperciva (implicit) MFC after: 1 week
This commit is contained in:
parent
6f56329a25
commit
2da1951583
@ -390,11 +390,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));
|
||||
|
@ -401,11 +401,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;
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user