aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/isp
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2015-11-23 20:44:49 +0000
committerAlexander Motin <mav@FreeBSD.org>2015-11-23 20:44:49 +0000
commite3a0bc583b84d05e232308a86c721365baf65054 (patch)
treee7557fd8cac1574ff668149fd5a194b1b9c37f2e /sys/dev/isp
parentba23388ab84a9c271f09c87a4e0e2d0b98caa0c5 (diff)
Notes
Diffstat (limited to 'sys/dev/isp')
-rw-r--r--sys/dev/isp/isp_freebsd.h1
-rw-r--r--sys/dev/isp/isp_pci.c20
-rw-r--r--sys/dev/isp/isp_sbus.c13
3 files changed, 0 insertions, 34 deletions
diff --git a/sys/dev/isp/isp_freebsd.h b/sys/dev/isp/isp_freebsd.h
index 1a74024900aa..8712cec274e2 100644
--- a/sys/dev/isp/isp_freebsd.h
+++ b/sys/dev/isp/isp_freebsd.h
@@ -311,7 +311,6 @@ struct isposinfo {
timer_active : 1,
autoconf : 1,
ehook_active : 1,
- disabled : 1,
mbox_sleeping : 1,
mbox_sleep_ok : 1,
mboxcmd_done : 1,
diff --git a/sys/dev/isp/isp_pci.c b/sys/dev/isp/isp_pci.c
index 1f3d6d697789..87fbb8df5537 100644
--- a/sys/dev/isp/isp_pci.c
+++ b/sys/dev/isp/isp_pci.c
@@ -456,16 +456,6 @@ isp_get_generic_options(device_t dev, ispsoftc_t *isp)
{
int tval;
- /*
- * Figure out if we're supposed to skip this one.
- */
- tval = 0;
- if (resource_int_value(device_get_name(dev), device_get_unit(dev), "disable", &tval) == 0 && tval) {
- device_printf(dev, "disabled at user request\n");
- isp->isp_osinfo.disabled = 1;
- return;
- }
-
tval = 0;
if (resource_int_value(device_get_name(dev), device_get_unit(dev), "fwload_disable", &tval) == 0 && tval != 0) {
isp->isp_confopts |= ISP_CFG_NORELOAD;
@@ -710,16 +700,6 @@ isp_pci_attach(device_t dev)
isp_get_generic_options(dev, isp);
/*
- * Check to see if options have us disabled
- */
- if (isp->isp_osinfo.disabled) {
- /*
- * But return zero to preserve unit numbering
- */
- return (0);
- }
-
- /*
* Get PCI options- which in this case are just mapping preferences.
*/
isp_get_pci_options(dev, &m1, &m2);
diff --git a/sys/dev/isp/isp_sbus.c b/sys/dev/isp/isp_sbus.c
index 4ef6da4e9cef..cb8f1698499b 100644
--- a/sys/dev/isp/isp_sbus.c
+++ b/sys/dev/isp/isp_sbus.c
@@ -155,19 +155,6 @@ isp_sbus_attach(device_t dev)
sbs->sbus_dev = dev;
sbs->sbus_mdvec = mdvec;
- /*
- * Figure out if we're supposed to skip this one.
- * If we are, we actually go to ISP_ROLE_NONE.
- */
-
- tval = 0;
- if (resource_int_value(device_get_name(dev), device_get_unit(dev),
- "disable", &tval) == 0 && tval) {
- device_printf(dev, "device is disabled\n");
- /* but return 0 so the !$)$)*!$*) unit isn't reused */
- return (0);
- }
-
role = 0;
if (resource_int_value(device_get_name(dev), device_get_unit(dev),
"role", &role) == 0 &&