diff options
author | Grygorii Strashko <Grygorii.Strashko@linaro.org> | 2015-02-03 18:01:58 +0300 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2015-02-03 23:17:12 +0300 |
commit | dd378b1bcaa0ef5b14cca1e52b58ef9a3279fd8b (patch) | |
tree | 2fe042e39cac88aac18ca67c062673f1c4acae4c /arch/xtensa/mm/fault.c | |
parent | 7f444bf0a28c030d40925c5d0073d3e5ed8ca1e3 (diff) | |
download | linux-dd378b1bcaa0ef5b14cca1e52b58ef9a3279fd8b.tar.xz |
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 <Grygorii.Strashko@linaro.org>
[groeck: Declare tmp102_dev_pm_ops as static variable]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'arch/xtensa/mm/fault.c')
0 files changed, 0 insertions, 0 deletions