From: Sudeep KarkadaNagesha Date: Tue, 10 Sep 2013 17:59:47 +0000 (+0100) Subject: cpufreq: imx6q-cpufreq: assign cpu_dev correctly to cpu0 device X-Git-Tag: v3.12-rc2~7^2^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b494b48dacb4dd848d76bc8871e55716486f0253;p=pandora-kernel.git cpufreq: imx6q-cpufreq: assign cpu_dev correctly to cpu0 device Commit cdc58d602d2e657602a90c190cbf745886c95977 "cpufreq: imx6q-cpufreq: remove device tree parsing for cpu nodes" assumed the pdev->dev is set to cpu0 device in the platform code. But it actually points to the virtual cpufreq-cpu0 platform device which is not present in the device tree. Most of the information needed by cpufreq is stored in cpu0 DT node. So cpu_dev must point to cpu0 device. This patch fixes the wrong assignment to cpu_dev. Reported-by: Guennadi Liakhovetski Tested-by: Shawn Guo Signed-off-by: Sudeep KarkadaNagesha Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed