From: Harald Judt Date: Thu, 1 Aug 2013 14:18:45 +0000 (+0200) Subject: hwmon: (w83627ehf) Add support for hibernate X-Git-Tag: firefly_0821_release~176^2~5477^2~5 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e3b20b3f586604cde718a609b39577086351ed49;p=firefly-linux-kernel-4.4.55.git hwmon: (w83627ehf) Add support for hibernate Hibernation uses its own set of callback functions, even if the code is the same as the code used for suspend/restore. Signed-off-by: Harald Judt Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/w83627ehf.c b/drivers/hwmon/w83627ehf.c index 286ca7bae97c..23ff210513d3 100644 --- a/drivers/hwmon/w83627ehf.c +++ b/drivers/hwmon/w83627ehf.c @@ -2694,6 +2694,8 @@ static int w83627ehf_resume(struct device *dev) static const struct dev_pm_ops w83627ehf_dev_pm_ops = { .suspend = w83627ehf_suspend, .resume = w83627ehf_resume, + .freeze = w83627ehf_suspend, + .restore = w83627ehf_resume, }; #define W83627EHF_DEV_PM_OPS (&w83627ehf_dev_pm_ops)