From: Park Bumgyu Date: Wed, 14 Mar 2018 10:30:41 +0000 (+0900) Subject: cpufreq: acme: move domain id increment X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=495d5357002929af44dc360ae9e2159322ccd89f;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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) {