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/kbd | |
parent | 6591b310403469e94313efd7659f95f747192712 (diff) | |
download | src-8a9bc9c03ba8dfc43d5f5ca07166c6a40b54f5e6.tar.gz src-8a9bc9c03ba8dfc43d5f5ca07166c6a40b54f5e6.zip |
- Use the new resource_disabled() helper function to see if devices are
disabled.
- Change the apm driver to match the acpi driver's behavior by checking to
see if the device is disabled in the identify routine instead of in the
probe routine. This way if the device is disabled it is never created.
Note that a few places (ips(4), Alpha SMP) used "disable" instead of
"disabled" for their hint names, and these hints must be changed to
"disabled". If this is a big problem, resource_disabled() can always be
changed to honor both names.
Notes
Notes:
svn path=/head/; revision=117167
Diffstat (limited to 'sys/dev/kbd')
-rw-r--r-- | sys/dev/kbd/atkbd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/kbd/atkbd.c b/sys/dev/kbd/atkbd.c index edf6489310f8..569f14bbd227 100644 --- a/sys/dev/kbd/atkbd.c +++ b/sys/dev/kbd/atkbd.c @@ -277,8 +277,7 @@ atkbd_configure(int flags) atkbdc_configure(); /* if the driver is disabled, unregister the keyboard if any */ - if ((resource_int_value("atkbd", ATKBD_DEFAULT, "disabled", &i) == 0) - && i != 0) { + if (resource_disabled("atkbd", ATKBD_DEFAULT)) { i = kbd_find_keyboard(ATKBD_DRIVER_NAME, ATKBD_DEFAULT); if (i >= 0) { kbd = kbd_get_keyboard(i); |