diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2003-07-02 16:09:02 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2003-07-02 16:09:02 +0000 |
| commit | 8a9bc9c03ba8dfc43d5f5ca07166c6a40b54f5e6 (patch) | |
| tree | 24843831a3541cd5733aaad746e1a57206e1e21f /sys/dev/sio/sio.c | |
| parent | 6591b310403469e94313efd7659f95f747192712 (diff) | |
Notes
Diffstat (limited to 'sys/dev/sio/sio.c')
| -rw-r--r-- | sys/dev/sio/sio.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c index 330407852584..898a6667287d 100644 --- a/sys/dev/sio/sio.c +++ b/sys/dev/sio/sio.c @@ -2967,11 +2967,9 @@ siocnprobe(cp) for (unit = 0; unit < 16; unit++) { /* XXX need to know how many */ int flags; - int disabled; - if (resource_int_value("sio", unit, "disabled", &disabled) == 0) { - if (disabled) - continue; - } + + if (resource_disabled("sio", unit)) + continue; if (resource_int_value("sio", unit, "flags", &flags)) continue; if (COM_CONSOLE(flags) || COM_DEBUGGER(flags)) { |
