Allow the AC adapter device to be disabled with debug.acpi.disable="acad".

Even though documented, this option was never enabled even in rev 1.1.

Submitted by:	sos
This commit is contained in:
Nate Lawson 2004-04-20 13:09:17 +00:00
parent 4680bc9ee5
commit 0b84952197
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=128468

View file

@ -137,9 +137,8 @@ acpi_acad_notify_handler(ACPI_HANDLE h, UINT32 notify, void *context)
static int
acpi_acad_probe(device_t dev)
{
if (acpi_get_type(dev) == ACPI_TYPE_DEVICE &&
if (acpi_get_type(dev) == ACPI_TYPE_DEVICE && !acpi_disabled("acad") &&
acpi_MatchHid(dev, "ACPI0003")) {
device_set_desc(dev, "AC Adapter");
return (0);
}