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>
This commit is contained in:
Lars-Peter Clausen 2013-02-15 17:57:11 +01:00 committed by Guenter Roeck
parent 6e7d3b6bb9
commit e0db9c4bfe
1 changed files with 1 additions and 1 deletions

View 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;