Skip to content

Commit

Permalink
hwmon: (adt7410) Let suspend/resume depend on CONFIG_PM_SLEEP
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lars-Peter Clausen authored and Guenter Roeck committed Feb 20, 2013
1 parent 6e7d3b6 commit e0db9c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hwmon/adt7410.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e0db9c4

Please sign in to comment.