Oops, untested code was included accidentally.

Fixed.
This commit is contained in:
Mitsuru IWASAKI 2006-04-15 16:10:53 +00:00
parent 797f4fb875
commit 1b9518293e

View File

@ -157,9 +157,11 @@ acpi_cmbat_attach(device_t dev)
static int
acpi_cmbat_detach(device_t dev)
{
ACPI_HANDLE handle;
acpi_battery_remove(dev);
handle = acpi_get_handle(dev);
AcpiRemoveNotifyHandler(handle, ACPI_ALL_NOTIFY, acpi_cmbat_notify_handler);
acpi_battery_remove(dev);
return (0);
}