Do not add children (atkbd and psm) if they are disabled.
Approved by: jkh
This commit is contained in:
parent
45c27cda58
commit
4f4742024f
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user