Commit eade4ccd authored by Nikita Yushchenko's avatar Nikita Yushchenko Committed by Stephen Boyd

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: default avatarNikita Yushchenko <nikita.yoush@cogentembedded.com>
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent 7928b2cb
...@@ -549,7 +549,7 @@ static int cs2000_resume(struct device *dev) ...@@ -549,7 +549,7 @@ static int cs2000_resume(struct device *dev)
} }
static const struct dev_pm_ops cs2000_pm_ops = { 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 = { static struct i2c_driver cs2000_driver = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment