diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2013-02-15 20:57:11 +0400 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2013-02-20 05:34:15 +0400 |
commit | e0db9c4bfe2f44073fcdc1a39a13eb66b618098c (patch) | |
tree | cdd4437aa79bc5a3907c0d3b68ceabd9498d9f23 /drivers/hwmon | |
parent | 6e7d3b6bb9af358b2bf05cccb025ac5d66630b47 (diff) | |
download | linux-e0db9c4bfe2f44073fcdc1a39a13eb66b618098c.tar.xz |
hwmon: (adt7410) Let suspend/resume depend on CONFIG_PM_SLEEP
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>
Acked-by: Hartmut Knaack <knaack.h@gmx.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/adt7410.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/adt7410.c b/drivers/hwmon/adt7410.c index 4ccee4fbfd73..ae8081525c63 100644 --- a/drivers/hwmon/adt7410.c +++ b/drivers/hwmon/adt7410.c @@ -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; |