Commit e0e1df61 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven

soc: renesas: rcar-sysc: Eliminate local variable gov

As of commit 980532a5 ("soc: renesas: rcar-sysc: Use
GENPD_FLAG_ALWAYS_ON"), the local variable "gov" is assigned just once,
so it can be eliminated.
Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: default avatarSimon Horman <horms+renesas@verge.net.au>
Reviewed-by: default avatarNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
parent da51ceda
...@@ -200,7 +200,6 @@ static int __init rcar_sysc_pd_setup(struct rcar_sysc_pd *pd) ...@@ -200,7 +200,6 @@ static int __init rcar_sysc_pd_setup(struct rcar_sysc_pd *pd)
{ {
struct generic_pm_domain *genpd = &pd->genpd; struct generic_pm_domain *genpd = &pd->genpd;
const char *name = pd->genpd.name; const char *name = pd->genpd.name;
struct dev_power_governor *gov = &simple_qos_governor;
int error; int error;
if (pd->flags & PD_CPU) { if (pd->flags & PD_CPU) {
...@@ -254,7 +253,7 @@ static int __init rcar_sysc_pd_setup(struct rcar_sysc_pd *pd) ...@@ -254,7 +253,7 @@ static int __init rcar_sysc_pd_setup(struct rcar_sysc_pd *pd)
rcar_sysc_power(&pd->ch, true); rcar_sysc_power(&pd->ch, true);
finalize: finalize:
error = pm_genpd_init(genpd, gov, false); error = pm_genpd_init(genpd, &simple_qos_governor, false);
if (error) if (error)
pr_err("Failed to init PM domain %s: %d\n", name, error); pr_err("Failed to init PM domain %s: %d\n", name, error);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment