cpufreq: acme: move domain id increment
authorPark Bumgyu <bumgyu.park@samsung.com>
Wed, 14 Mar 2018 10:30:41 +0000 (19:30 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:30:42 +0000 (17:30 +0900)
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 <bumgyu.park@samsung.com>
drivers/cpufreq/exynos-acme.c

index bcc14dbb30a5e95e0c6e17112bde96b929c1e6f8..204306e05d60744fe652ba9abbe8f416d7406cb2 100644 (file)
@@ -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) {