diff options
author | Len Brown <len.brown@intel.com> | 2006-12-16 07:04:27 +0100 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-12-16 07:04:27 +0100 |
commit | cece901481bafbf14de8cbd3a89ae869ea881055 (patch) | |
tree | f9e240443643008c8feeaf55919105dc63ab8c72 /drivers/acpi/power.c | |
parent | Pull bugfix into test branch (diff) | |
parent | ACPI: Remove unnecessary from/to-void* and to-void casts in drivers/acpi (diff) | |
download | linux-cece901481bafbf14de8cbd3a89ae869ea881055.tar.xz linux-cece901481bafbf14de8cbd3a89ae869ea881055.zip |
Pull style into test branch
Conflicts:
drivers/acpi/button.c
drivers/acpi/ec.c
drivers/acpi/osl.c
drivers/acpi/sbs.c
Diffstat (limited to 'drivers/acpi/power.c')
-rw-r--r-- | drivers/acpi/power.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/acpi/power.c b/drivers/acpi/power.c index fe67a8af520e..23a8a9295578 100644 --- a/drivers/acpi/power.c +++ b/drivers/acpi/power.c @@ -108,7 +108,7 @@ acpi_power_get_context(acpi_handle handle, return result; } - *resource = (struct acpi_power_resource *)acpi_driver_data(device); + *resource = acpi_driver_data(device); if (!resource) return -ENODEV; @@ -442,7 +442,7 @@ static int acpi_power_seq_show(struct seq_file *seq, void *offset) struct acpi_power_resource *resource = NULL; - resource = (struct acpi_power_resource *)seq->private; + resource = seq->private; if (!resource) goto end; @@ -590,7 +590,7 @@ static int acpi_power_remove(struct acpi_device *device, int type) if (!device || !acpi_driver_data(device)) return -EINVAL; - resource = (struct acpi_power_resource *)acpi_driver_data(device); + resource = acpi_driver_data(device); acpi_power_remove_fs(device); |