aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/power.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/power.c')
-rw-r--r--drivers/acpi/power.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/acpi/power.c b/drivers/acpi/power.c
index fec225d1b6b7..e9dab54bd541 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
@@ -445,7 +445,7 @@ static int acpi_power_seq_show(struct seq_file *seq, void *offset)
445 struct acpi_power_resource *resource = NULL; 445 struct acpi_power_resource *resource = NULL;
446 446
447 447
448 resource = (struct acpi_power_resource *)seq->private; 448 resource = seq->private;
449 449
450 if (!resource) 450 if (!resource)
451 goto end; 451 goto end;
@@ -593,7 +593,7 @@ static int acpi_power_remove(struct acpi_device *device, int type)
593 if (!device || !acpi_driver_data(device)) 593 if (!device || !acpi_driver_data(device))
594 return -EINVAL; 594 return -EINVAL;
595 595
596 resource = (struct acpi_power_resource *)acpi_driver_data(device); 596 resource = acpi_driver_data(device);
597 597
598 acpi_power_remove_fs(device); 598 acpi_power_remove_fs(device);
599 599