]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
hwmon: (adt7410) Let suspend/resume depend on CONFIG_PM_SLEEP
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 15 Feb 2013 16:57:11 +0000 (17:57 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 15 Feb 2013 20:01:42 +0000 (12:01 -0800)
Only build the suspend/resume code if CONFIG_PM_SLEEP is selected. Currently the
code is built if CONFIG_PM is selected, but it will also be selected if only
runtime PM support is built into the kernel.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/adt7410.c

index 4ccee4fbfd73176ff3951897d83da683e8d9cc4c..ae8081525c6321d774af9aa14636acfc33cca421 100644 (file)
@@ -415,7 +415,7 @@ static const struct i2c_device_id adt7410_ids[] = {
 };
 MODULE_DEVICE_TABLE(i2c, adt7410_ids);
 
-#ifdef CONFIG_PM
+#ifdef CONFIG_PM_SLEEP
 static int adt7410_suspend(struct device *dev)
 {
        int ret;