diff options
| -rw-r--r-- | drivers/acpi/dptf/dptf_power.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/acpi/dptf/dptf_power.c b/drivers/acpi/dptf/dptf_power.c index e1c242568341..0c081390930a 100644 --- a/drivers/acpi/dptf/dptf_power.c +++ b/drivers/acpi/dptf/dptf_power.c | |||
| @@ -31,8 +31,7 @@ static ssize_t name##_show(struct device *dev,\ | |||
| 31 | struct device_attribute *attr,\ | 31 | struct device_attribute *attr,\ |
| 32 | char *buf)\ | 32 | char *buf)\ |
| 33 | {\ | 33 | {\ |
| 34 | struct platform_device *pdev = to_platform_device(dev);\ | 34 | struct acpi_device *acpi_dev = dev_get_drvdata(dev);\ |
| 35 | struct acpi_device *acpi_dev = platform_get_drvdata(pdev);\ | ||
| 36 | unsigned long long val;\ | 35 | unsigned long long val;\ |
| 37 | acpi_status status;\ | 36 | acpi_status status;\ |
| 38 | \ | 37 | \ |
