From: Nikita Yushchenko Date: Tue, 20 Mar 2018 08:33:23 +0000 (+0300) Subject: clk: cs2000: set pm_ops in hibernate-compatible way X-Git-Tag: v4.19~1196^2~1^5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eade4ccdb087ae6238bcce78e64587d543374ca4;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Stephen Boyd --- diff --git a/drivers/clk/clk-cs2000-cp.c b/drivers/clk/clk-cs2000-cp.c index e8ea81c..c580197 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 = {