summaryrefslogtreecommitdiff
path: root/drivers/clk/renesas/clk-mstp.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2016-04-22 15:45:45 +0300
committerGeert Uytterhoeven <geert+renesas@glider.be>2016-04-28 11:32:41 +0300
commitb3a52d75bc91d2c7299e721c0fb41c33859c2cdf (patch)
tree5ecbb95aaa38c3351948d9f522f02e9e83cda42f /drivers/clk/renesas/clk-mstp.c
parentccce262de1c5035513d7974ab1550dd757d25bf4 (diff)
downloadlinux-b3a52d75bc91d2c7299e721c0fb41c33859c2cdf.tar.xz
clk: renesas: mstp: Postpone call to pm_genpd_init()
All local setup of the generic_pm_domain structure should have been completed before calling pm_genpd_init(). Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/clk/renesas/clk-mstp.c')
-rw-r--r--drivers/clk/renesas/clk-mstp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/clk/renesas/clk-mstp.c b/drivers/clk/renesas/clk-mstp.c
index 8b597b9a3804..969fbb61ab07 100644
--- a/drivers/clk/renesas/clk-mstp.c
+++ b/drivers/clk/renesas/clk-mstp.c
@@ -316,11 +316,10 @@ void __init cpg_mstp_add_clk_domain(struct device_node *np)
return;
pd->name = np->name;
-
pd->flags = GENPD_FLAG_PM_CLK;
- pm_genpd_init(pd, &simple_qos_governor, false);
pd->attach_dev = cpg_mstp_attach_dev;
pd->detach_dev = cpg_mstp_detach_dev;
+ pm_genpd_init(pd, &simple_qos_governor, false);
of_genpd_add_provider_simple(np, pd);
}