diff --git a/sys/dev/atkbdc/atkbdc_isa.c b/sys/dev/atkbdc/atkbdc_isa.c index b11b803e3b42..9549c99d5d4d 100644 --- a/sys/dev/atkbdc/atkbdc_isa.c +++ b/sys/dev/atkbdc/atkbdc_isa.c @@ -117,6 +117,9 @@ atkbdc_add_device(device_t dev, const char *name, int unit) device_t child; int t; + if (resource_int_value(name, unit, "disabled", &t) == 0 && t != 0) + return; + kdev = malloc(sizeof(struct atkbdc_device), M_ATKBDDEV, M_NOWAIT); if (!kdev) return; diff --git a/sys/dev/atkbdc/atkbdc_subr.c b/sys/dev/atkbdc/atkbdc_subr.c index b11b803e3b42..9549c99d5d4d 100644 --- a/sys/dev/atkbdc/atkbdc_subr.c +++ b/sys/dev/atkbdc/atkbdc_subr.c @@ -117,6 +117,9 @@ atkbdc_add_device(device_t dev, const char *name, int unit) device_t child; int t; + if (resource_int_value(name, unit, "disabled", &t) == 0 && t != 0) + return; + kdev = malloc(sizeof(struct atkbdc_device), M_ATKBDDEV, M_NOWAIT); if (!kdev) return; diff --git a/sys/isa/atkbdc_isa.c b/sys/isa/atkbdc_isa.c index b11b803e3b42..9549c99d5d4d 100644 --- a/sys/isa/atkbdc_isa.c +++ b/sys/isa/atkbdc_isa.c @@ -117,6 +117,9 @@ atkbdc_add_device(device_t dev, const char *name, int unit) device_t child; int t; + if (resource_int_value(name, unit, "disabled", &t) == 0 && t != 0) + return; + kdev = malloc(sizeof(struct atkbdc_device), M_ATKBDDEV, M_NOWAIT); if (!kdev) return;