summaryrefslogtreecommitdiffstats
path: root/sys/isa
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2004-10-14 22:21:59 +0000
committernjl <njl@FreeBSD.org>2004-10-14 22:21:59 +0000
commit48e4157e91b19dd6052373a6bdcadbe4f11313c2 (patch)
tree0f9116b3f1c78782e732cdc488fb4b329d06e0b3 /sys/isa
parentbcc253c05805e4d8d61f1a9af593a83806403580 (diff)
downloadFreeBSD-src-48e4157e91b19dd6052373a6bdcadbe4f11313c2.zip
FreeBSD-src-48e4157e91b19dd6052373a6bdcadbe4f11313c2.tar.gz
Remove local hacks to set flags now that the device probe does this for us.
Tested on every device except sio_pci and the pc98 fd.c. Perhaps something similar should be done for the "disabled" hints also. MFC after: 2 weeks
Diffstat (limited to 'sys/isa')
-rw-r--r--sys/isa/atkbdc_isa.c2
-rw-r--r--sys/isa/isahint.c5
2 files changed, 1 insertions, 6 deletions
diff --git a/sys/isa/atkbdc_isa.c b/sys/isa/atkbdc_isa.c
index 153ed9f..d0476a3 100644
--- a/sys/isa/atkbdc_isa.c
+++ b/sys/isa/atkbdc_isa.c
@@ -252,8 +252,6 @@ atkbdc_add_child(device_t bus, int order, char *name, int unit)
resource_list_add(&ivar->resources, SYS_RES_IRQ, ivar->rid,
t, t, 1);
- if (resource_int_value(name, unit, "flags", &t) == 0)
- device_set_flags(child, t);
if (resource_disabled(name, unit))
device_disable(child);
diff --git a/sys/isa/isahint.c b/sys/isa/isahint.c
index dd04967..32833f1 100644
--- a/sys/isa/isahint.c
+++ b/sys/isa/isahint.c
@@ -39,7 +39,7 @@ static void
isahint_add_device(device_t parent, const char *name, int unit)
{
device_t child;
- int sensitive, start, count, t;
+ int sensitive, start, count;
int order;
/* device-specific flag overrides any wildcard */
@@ -76,9 +76,6 @@ isahint_add_device(device_t parent, const char *name, int unit)
if (resource_int_value(name, unit, "drq", &start) == 0 && start >= 0)
bus_set_resource(child, SYS_RES_DRQ, 0, start, 1);
- if (resource_int_value(name, unit, "flags", &t) == 0)
- device_set_flags(child, t);
-
if (resource_disabled(name, unit))
device_disable(child);
}
OpenPOWER on IntegriCloud