diff options
author | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2017-06-08 02:36:47 +0200 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2017-06-30 03:47:35 +0200 |
commit | b3b02eac33eddda88992962d920b46348bb086da (patch) | |
tree | 7f905d035b2db5a24d60de9b0d72a5be819164b3 /drivers/clk/at91/clk-generated.c | |
parent | clk: keystone: TI_SCI_PROTOCOL is needed for clk driver (diff) | |
download | linux-b3b02eac33eddda88992962d920b46348bb086da.tar.xz linux-b3b02eac33eddda88992962d920b46348bb086da.zip |
clk: at91: Add sama5d2 suspend/resume
On sama5d2, VDD core maybe be cut while in suspend. This means registers
will be lost. Ensure they are saved and restored properly.
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/at91/clk-generated.c')
-rw-r--r-- | drivers/clk/at91/clk-generated.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/clk/at91/clk-generated.c b/drivers/clk/at91/clk-generated.c index 07c8f701e51c..f0b7ae904ce2 100644 --- a/drivers/clk/at91/clk-generated.c +++ b/drivers/clk/at91/clk-generated.c @@ -266,6 +266,8 @@ at91_clk_register_generated(struct regmap *regmap, spinlock_t *lock, if (ret) { kfree(gck); hw = ERR_PTR(ret); + } else { + pmc_register_id(id); } return hw; |