From: Aaro Koskinen Date: Mon, 5 Aug 2013 18:27:12 +0000 (+0300) Subject: cpufreq: loongson2: fix regression related to clock management X-Git-Tag: v3.11-rc5~11^2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f54fe64d14dff3df6d45a48115d248a82557811f;p=pandora-kernel.git cpufreq: loongson2: fix regression related to clock management Commit 42913c799 (MIPS: Loongson2: Use clk API instead of direct dereferences) broke the cpufreq functionality on Loongson2 boards: clk_set_rate() is called before the CPU frequency table is initialized, and therefore will always fail. Fix by moving the clk_set_rate() after the table initialization. Tested on Lemote FuLoong mini-PC. Signed-off-by: Aaro Koskinen Acked-by: Viresh Kumar Cc: 3.9+ # 3.9+ Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed