Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9a1757a1 authored by Maria Yu's avatar Maria Yu Committed by Jonathan Avila
Browse files

qcom-cpufreq: Add missing cpufreq registers when use common table



When use common cpufreq table, fix missing register pm notifier and
cpufreq driver register.

Change-Id: I8432696c81c941c641d9ee1db6385e9e94c3a012
Signed-off-by: default avatarMaria Yu <aiquny@codeaurora.org>
Signed-off-by: default avatarJonathan Avila <avilaj@codeaurora.org>
parent 6eebbaf2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -441,7 +441,7 @@ static int msm_cpufreq_probe(struct platform_device *pdev)
	if (!IS_ERR(ftbl)) {
		for_each_possible_cpu(cpu)
			per_cpu(freq_table, cpu) = ftbl;
		return 0;
		goto out_register;
	}

	/*
@@ -481,6 +481,7 @@ static int msm_cpufreq_probe(struct platform_device *pdev)
		per_cpu(freq_table, cpu) = ftbl;
	}

out_register:
	ret = register_pm_notifier(&msm_cpufreq_pm_notifier);
	if (ret)
		return ret;