diff mbox

clk: cs2000: set pm_ops in hibernate-compatible way

Message ID 20180320083323.23289-1-nikita.yoush@cogentembedded.com (mailing list archive)
State Accepted, archived
Headers show

Commit Message

Nikita Yushchenko March 20, 2018, 8:33 a.m. UTC
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>
---
 drivers/clk/clk-cs2000-cp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stephen Boyd April 6, 2018, 6:23 p.m. UTC | #1
Quoting Nikita Yushchenko (2018-03-20 01:33:23)
> 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>
> ---

Applied to clk-next

--
To unsubscribe from this list: send the line "unsubscribe linux-clk" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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 = {