diff options
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, | |||
108 | return result; | 108 | return result; |
109 | } | 109 | } |
110 | 110 | ||
111 | *resource = (struct acpi_power_resource *)acpi_driver_data(device); | 111 | *resource = acpi_driver_data(device); |
112 | if (!resource) | 112 | if (!resource) |
113 | return -ENODEV; | 113 | return -ENODEV; |
114 | 114 | ||
@@ -442,7 +442,7 @@ static int acpi_power_seq_show(struct seq_file *seq, void *offset) | |||
442 | struct acpi_power_resource *resource = NULL; | 442 | struct acpi_power_resource *resource = NULL; |
443 | 443 | ||
444 | 444 | ||
445 | resource = (struct acpi_power_resource *)seq->private; | 445 | resource = seq->private; |
446 | 446 | ||
447 | if (!resource) | 447 | if (!resource) |
448 | goto end; | 448 | goto end; |
@@ -590,7 +590,7 @@ static int acpi_power_remove(struct acpi_device *device, int type) | |||
590 | if (!device || !acpi_driver_data(device)) | 590 | if (!device || !acpi_driver_data(device)) |
591 | return -EINVAL; | 591 | return -EINVAL; |
592 | 592 | ||
593 | resource = (struct acpi_power_resource *)acpi_driver_data(device); | 593 | resource = acpi_driver_data(device); |
594 | 594 | ||
595 | acpi_power_remove_fs(device); | 595 | acpi_power_remove_fs(device); |
596 | 596 | ||