diff options
author | njl <njl@FreeBSD.org> | 2004-10-14 22:21:59 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2004-10-14 22:21:59 +0000 |
commit | 48e4157e91b19dd6052373a6bdcadbe4f11313c2 (patch) | |
tree | 0f9116b3f1c78782e732cdc488fb4b329d06e0b3 /sys/isa/isahint.c | |
parent | bcc253c05805e4d8d61f1a9af593a83806403580 (diff) | |
download | FreeBSD-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/isahint.c')
-rw-r--r-- | sys/isa/isahint.c | 5 |
1 files changed, 1 insertions, 4 deletions
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); } |