clk: cs2000: set pm_ops in hibernate-compatible way
authorNikita Yushchenko <nikita.yoush@cogentembedded.com>
Tue, 20 Mar 2018 08:33:23 +0000 (11:33 +0300)
committerStephen Boyd <sboyd@kernel.org>
Fri, 6 Apr 2018 18:22:44 +0000 (11:22 -0700)
commiteade4ccdb087ae6238bcce78e64587d543374ca4
tree6c42273b019c5ebf7ea69b61160c24ca75ee92a9
parent7928b2cbe55b2a410a0f5c1f154610059c57b1b2
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>
drivers/clk/clk-cs2000-cp.c