diff options
author | Len Brown <len.brown@intel.com> | 2010-01-20 01:23:27 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2010-01-20 01:23:27 -0500 |
commit | be6066f34c948ccf4adcc90bbeb1fd335d663303 (patch) | |
tree | 551d2cf4934e7101e2e668347d85f47663a77e7c /drivers/acpi/power_meter.c | |
parent | b4cdd6ac4f9b73118542a5c4e796e6b9f287d0dd (diff) | |
parent | 7f07a605a3929d2d94dcbad8ccb7d280958d21f9 (diff) |
Merge branch 'misc' into release
Diffstat (limited to 'drivers/acpi/power_meter.c')
-rw-r--r-- | drivers/acpi/power_meter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/power_meter.c b/drivers/acpi/power_meter.c index 2ef7030a0c2..dc4ffadf812 100644 --- a/drivers/acpi/power_meter.c +++ b/drivers/acpi/power_meter.c @@ -64,7 +64,7 @@ static int can_cap_in_hardware(void) return force_cap_on || cap_in_hardware; } -static struct acpi_device_id power_meter_ids[] = { +static const struct acpi_device_id power_meter_ids[] = { {"ACPI000D", 0}, {"", 0}, }; @@ -534,6 +534,7 @@ static void remove_domain_devices(struct acpi_power_meter_resource *resource) kfree(resource->domain_devices); kobject_put(resource->holders_dir); + resource->num_domain_devices = 0; } static int read_domain_devices(struct acpi_power_meter_resource *resource) @@ -740,7 +741,6 @@ skip_unsafe_cap: return res; error: - remove_domain_devices(resource); remove_attrs(resource); return res; } |