From: Grygorii Strashko Date: Tue, 3 Feb 2015 15:01:58 +0000 (+0200) Subject: hwmon: (tmp102) add hibernation callbacks X-Git-Tag: fixes-v4.0-rc1~186^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd378b1bcaa0ef5b14cca1e52b58ef9a3279fd8b;p=pandora-kernel.git hwmon: (tmp102) add hibernation callbacks Setting a dev_pm_ops suspend/resume pair but not a set of hibernation functions means those pm functions will not be called upon hibernation. Fix this by using SIMPLE_DEV_PM_OPS, which appropriately assigns the suspend and hibernation handlers and move mp102_suspend/tmp102_resume under CONFIG_PM_SLEEP to avoid build warnings. Signed-off-by: Grygorii Strashko [groeck: Declare tmp102_dev_pm_ops as static variable] Signed-off-by: Guenter Roeck --- Reading git-diff-tree failed