]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: cpufreq-cpu0: assign cpu_dev correctly to cpu0 device
authorSudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>
Tue, 10 Sep 2013 17:59:46 +0000 (18:59 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 19 Sep 2013 01:53:43 +0000 (03:53 +0200)
commit93bf71c52313ddb5db6d6722143c46209cfad651
tree65b6acea9440901eab1782631e77be1c7ef2f4a7
parent17392f8478d7f9fd94e875b5e1518d53ede9e075
cpufreq: cpufreq-cpu0: assign cpu_dev correctly to cpu0 device

Commit 1c2aee0e89f3e2de34a0b2da1b0d4a959a187c21 "cpufreq: cpufreq-cpu0:
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-and-tested-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Sudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq-cpu0.c