aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk/clk-cs2000-cp.c
diff options
context:
space:
mode:
authorNikita Yushchenko <nikita.yoush@cogentembedded.com>2018-03-20 11:33:23 +0300
committerStephen Boyd <sboyd@kernel.org>2018-04-06 11:22:44 -0700
commiteade4ccdb087ae6238bcce78e64587d543374ca4 (patch)
tree6c42273b019c5ebf7ea69b61160c24ca75ee92a9 /drivers/clk/clk-cs2000-cp.c
parentLinux 4.16-rc1 (diff)
downloadlinux-dev-eade4ccdb087ae6238bcce78e64587d543374ca4.tar.xz
linux-dev-eade4ccdb087ae6238bcce78e64587d543374ca4.zip
clk: cs2000: set pm_ops in hibernate-compatible way
Use SET_LATE_SYSTEM_SLEEP_PM_OPS() macro instead of direct assignment to .resume_early field. This fixes initialization of CS2000 in restore from hibernation in case of kernel used to load image did not initialize CS2000 while kernel being restored had CS2000 initialized. Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/clk-cs2000-cp.c')
-rw-r--r--drivers/clk/clk-cs2000-cp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk-cs2000-cp.c b/drivers/clk/clk-cs2000-cp.c
index e8ea81c30f0c..c58019750b7e 100644
--- a/drivers/clk/clk-cs2000-cp.c
+++ b/drivers/clk/clk-cs2000-cp.c
@@ -549,7 +549,7 @@ static int cs2000_resume(struct device *dev)
}
static const struct dev_pm_ops cs2000_pm_ops = {
- .resume_early = cs2000_resume,
+ SET_LATE_SYSTEM_SLEEP_PM_OPS(NULL, cs2000_resume)
};
static struct i2c_driver cs2000_driver = {