diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2016-04-22 14:46:51 +0200 |
---|---|---|
committer | Geert Uytterhoeven <geert+renesas@glider.be> | 2016-04-28 10:32:53 +0200 |
commit | 93662500a1fcc9c8085ac3f056b537d093fd4d20 (patch) | |
tree | b44acaab3d7defb0f2fc1daed444906b9686b29b | |
parent | 20729300cabdad60333e52278bd2dd25e5d85518 (diff) | |
download | op-kernel-dev-93662500a1fcc9c8085ac3f056b537d093fd4d20.zip op-kernel-dev-93662500a1fcc9c8085ac3f056b537d093fd4d20.tar.gz |
clk: renesas: cpg-mssr: 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>
-rw-r--r-- | drivers/clk/renesas/renesas-cpg-mssr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/renesas/renesas-cpg-mssr.c b/drivers/clk/renesas/renesas-cpg-mssr.c index 1f2dc362..0d59531 100644 --- a/drivers/clk/renesas/renesas-cpg-mssr.c +++ b/drivers/clk/renesas/renesas-cpg-mssr.c @@ -493,9 +493,9 @@ static int __init cpg_mssr_add_clk_domain(struct device *dev, genpd = &pd->genpd; genpd->name = np->name; genpd->flags = GENPD_FLAG_PM_CLK; - pm_genpd_init(genpd, &simple_qos_governor, false); genpd->attach_dev = cpg_mssr_attach_dev; genpd->detach_dev = cpg_mssr_detach_dev; + pm_genpd_init(genpd, &simple_qos_governor, false); cpg_mssr_clk_domain = pd; of_genpd_add_provider_simple(np, genpd); |