diff options
Diffstat (limited to 'sys/dev/acpica/acpi_battery.c')
-rw-r--r-- | sys/dev/acpica/acpi_battery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpi_battery.c b/sys/dev/acpica/acpi_battery.c index c909272..f245c8f 100644 --- a/sys/dev/acpica/acpi_battery.c +++ b/sys/dev/acpica/acpi_battery.c @@ -183,7 +183,7 @@ acpi_battery_init(void) struct acpi_softc *sc; int error; - if ((dev = devclass_get_device(acpi_devclass, 0)) == NULL) { + if ((dev = devclass_get_device(devclass_find("acpi"), 0)) == NULL) { return (ENXIO); } if ((sc = device_get_softc(dev)) == NULL) { |