diff options
author | Patrick Mochel <mochel@linux.intel.com> | 2006-05-19 22:54:41 +0200 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-06-30 08:37:05 +0200 |
commit | a6ba5ebef91a59fabd45962e576c02468dbcd33f (patch) | |
tree | 762aed6aee979bce60e5cb50ef0e137bfe88d89b /drivers/acpi/ac.c | |
parent | ACPI: video: add struct acpi_device to struct acpi_video_bus. (diff) | |
download | linux-a6ba5ebef91a59fabd45962e576c02468dbcd33f.tar.xz linux-a6ba5ebef91a59fabd45962e576c02468dbcd33f.zip |
ACPI: ac: Use acpi_device's handle instead of driver's
Signed-off-by: Patrick Mochel <mochel@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/ac.c')
-rw-r--r-- | drivers/acpi/ac.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/acpi/ac.c b/drivers/acpi/ac.c index 206f56d2aa3a..447de542cb46 100644 --- a/drivers/acpi/ac.c +++ b/drivers/acpi/ac.c @@ -89,7 +89,7 @@ static int acpi_ac_get_state(struct acpi_ac *ac) if (!ac) return -EINVAL; - status = acpi_evaluate_integer(ac->handle, "_PSR", NULL, &ac->state); + status = acpi_evaluate_integer(ac->device->handle, "_PSR", NULL, &ac->state); if (ACPI_FAILURE(status)) { ACPI_EXCEPTION((AE_INFO, status, "Error reading AC Adapter state")); ac->state = ACPI_AC_STATUS_UNKNOWN; @@ -236,7 +236,7 @@ static int acpi_ac_add(struct acpi_device *device) if (result) goto end; - status = acpi_install_notify_handler(ac->handle, + status = acpi_install_notify_handler(device->handle, ACPI_DEVICE_NOTIFY, acpi_ac_notify, ac); if (ACPI_FAILURE(status)) { @@ -268,7 +268,7 @@ static int acpi_ac_remove(struct acpi_device *device, int type) ac = (struct acpi_ac *)acpi_driver_data(device); - status = acpi_remove_notify_handler(ac->handle, + status = acpi_remove_notify_handler(device->handle, ACPI_DEVICE_NOTIFY, acpi_ac_notify); acpi_ac_remove_fs(device); |