From 495d5357002929af44dc360ae9e2159322ccd89f Mon Sep 17 00:00:00 2001 From: Park Bumgyu Date: Wed, 14 Mar 2018 19:30:41 +0900 Subject: [PATCH] cpufreq: acme: move domain id increment If acme fail to initialize cpufreq domain, domain id does not increase. Move domain id increment to fix it. Change-Id: I0cbc1f80452a71195bea010020d93178a268eabb Signed-off-by: Park Bumgyu --- drivers/cpufreq/exynos-acme.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/cpufreq/exynos-acme.c b/drivers/cpufreq/exynos-acme.c index bcc14dbb30a5..204306e05d60 100644 --- a/drivers/cpufreq/exynos-acme.c +++ b/drivers/cpufreq/exynos-acme.c @@ -1600,7 +1600,7 @@ static int __init exynos_cpufreq_init(void) list_add_tail(&domain->list, &domains); domain->dn = dn; - domain->id = domain_id; + domain->id = domain_id++; ret = init_domain(domain, dn); if (ret) { pr_err("failed to initialize cpufreq domain%d\n", @@ -1610,7 +1610,6 @@ static int __init exynos_cpufreq_init(void) } print_domain_info(domain); - domain_id++; } if (!domain_id) { -- 2.20.1