diff options
author | Olof Johansson <olof@lixom.net> | 2012-10-09 17:05:38 -0400 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2012-10-09 18:00:57 -0400 |
commit | 1e574e3a7dbef1c0365494687d7a0b6dca7eac93 (patch) | |
tree | c01ad64304ac7538542173b60b45f11828d915d5 /arch/arm/mach-omap2/pm.c | |
parent | ccd7e49c241d8db86d7935a3976d11f2e2301d1f (diff) | |
parent | 37fedb4c423ab78639e65a7c15d2f23cb412aa7e (diff) |
Merge tag 'omap-for-v3.7-rc1/fixes-cpufreq-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into fixes
From Tony Lindgren:
These were agreed to be merged via arm soc tree as Rafael
is on vacation.
From Kevin Hilman <khilman@deeprootsystems.com>:
This series a couple bug fixes and a couple fixes that make this
driver support recently added OMAP-based SoCs.
The 'get_cpu_device' patch is needed due to a change in the OMAP
OMAP PM core code which enforces use of get_cpu_device() instead of
a deprecated OMAP-specific API.
The usage of plat/*.h headers breaks single zImage, so platforms are
cleaning up and/or removing plat/*.h so the driver needs to be fixed
accordingly.
This series is based on the merge of Rafael's pm-for-3.7-rc1 tag into
Linus' master branch: commit 16642a2e7be23bbda013fc32d8f6c68982eab603.
* tag 'omap-for-v3.7-rc1/fixes-cpufreq-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap:
ARM: OMAP2+: PM: MPU DVFS: use generic CPU device for MPU-SS
cpufreq: OMAP: use get_cpu_device() instead of omap_device API
cpufreq: OMAP: fix clock usage to be SoC independent, remove plat/ includes
cpufreq: OMAP: remove unused <plat/omap-pm.h>
cpufreq: OMAP: ensure valid clock rate before scaling
Diffstat (limited to 'arch/arm/mach-omap2/pm.c')
-rw-r--r-- | arch/arm/mach-omap2/pm.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c index 1e40afe7ed3c..ea61c32957bd 100644 --- a/arch/arm/mach-omap2/pm.c +++ b/arch/arm/mach-omap2/pm.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/opp.h> | 16 | #include <linux/opp.h> |
17 | #include <linux/export.h> | 17 | #include <linux/export.h> |
18 | #include <linux/suspend.h> | 18 | #include <linux/suspend.h> |
19 | #include <linux/cpu.h> | ||
19 | 20 | ||
20 | #include <asm/system_misc.h> | 21 | #include <asm/system_misc.h> |
21 | 22 | ||
@@ -169,7 +170,15 @@ static int __init omap2_set_init_voltage(char *vdd_name, char *clk_name, | |||
169 | goto exit; | 170 | goto exit; |
170 | } | 171 | } |
171 | 172 | ||
172 | dev = omap_device_get_by_hwmod_name(oh_name); | 173 | if (!strncmp(oh_name, "mpu", 3)) |
174 | /* | ||
175 | * All current OMAPs share voltage rail and clock | ||
176 | * source, so CPU0 is used to represent the MPU-SS. | ||
177 | */ | ||
178 | dev = get_cpu_device(0); | ||
179 | else | ||
180 | dev = omap_device_get_by_hwmod_name(oh_name); | ||
181 | |||
173 | if (IS_ERR(dev)) { | 182 | if (IS_ERR(dev)) { |
174 | pr_err("%s: Unable to get dev pointer for hwmod %s\n", | 183 | pr_err("%s: Unable to get dev pointer for hwmod %s\n", |
175 | __func__, oh_name); | 184 | __func__, oh_name); |