diff options
author | Guenter Roeck <linux@roeck-us.net> | 2012-07-27 10:11:32 -0400 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2012-07-27 16:59:13 -0400 |
commit | 9baeb8fdd7e1e78973ad19a6d7e2bcf7dfeb2498 (patch) | |
tree | 8d549abddea8cdd984542a215543fc309a47e927 /drivers/hwmon | |
parent | 25918f9811eae1d657db2bccdfcb077038d9454c (diff) |
hwmon: (acpi_power_meter) Fix build warning
Commit c5dec0182256361a3f823316e8fb85263f76efe7 (acpi_power_meter: Use struct
dev_pm_ops for power management) introduced the following build warning. It is
seen if CONFIG_PM_SLEEP is not defined.
acpi_power_meter.c:930:12: warning: acpi_power_meter_resume defined but not used
Fix it.
Cc: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/acpi_power_meter.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/hwmon/acpi_power_meter.c b/drivers/hwmon/acpi_power_meter.c index 563c02904ddf..23ab3c496b05 100644 --- a/drivers/hwmon/acpi_power_meter.c +++ b/drivers/hwmon/acpi_power_meter.c | |||
@@ -927,6 +927,8 @@ static int acpi_power_meter_remove(struct acpi_device *device, int type) | |||
927 | return 0; | 927 | return 0; |
928 | } | 928 | } |
929 | 929 | ||
930 | #ifdef CONFIG_PM_SLEEP | ||
931 | |||
930 | static int acpi_power_meter_resume(struct device *dev) | 932 | static int acpi_power_meter_resume(struct device *dev) |
931 | { | 933 | { |
932 | struct acpi_power_meter_resource *resource; | 934 | struct acpi_power_meter_resource *resource; |
@@ -944,6 +946,8 @@ static int acpi_power_meter_resume(struct device *dev) | |||
944 | return 0; | 946 | return 0; |
945 | } | 947 | } |
946 | 948 | ||
949 | #endif /* CONFIG_PM_SLEEP */ | ||
950 | |||
947 | static SIMPLE_DEV_PM_OPS(acpi_power_meter_pm, NULL, acpi_power_meter_resume); | 951 | static SIMPLE_DEV_PM_OPS(acpi_power_meter_pm, NULL, acpi_power_meter_resume); |
948 | 952 | ||
949 | static struct acpi_driver acpi_power_meter_driver = { | 953 | static struct acpi_driver acpi_power_meter_driver = { |