aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/cpuidle34xx.c
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2012-12-17 21:38:55 -0500
committerOlof Johansson <olof@lixom.net>2012-12-17 21:38:55 -0500
commit10be289d07a5327e2e7764bb3ccbffa215075103 (patch)
treee1591c2cee3da7e98e0166a60ff6517d63ba28c1 /arch/arm/mach-omap2/cpuidle34xx.c
parent68136b105cbb798b13e9545b9952e568d04e347c (diff)
parent9db316b6bf0234d9391f87dd0d28b23f5a44facb (diff)
Merge tag 'omap-fixes-a-for-v3.8-window' of git://git.kernel.org/pub/scm/linux/kernel/git/pjw/omap-pending into fixes
From Paul Walmsley per Tony Lindgrens request: Fix some OMAP4 clock problems, and deal with some sparse warnings from the OMAP CPUIdle code. * tag 'omap-fixes-a-for-v3.8-window' of git://git.kernel.org/pub/scm/linux/kernel/git/pjw/omap-pending: ARM: OMAP3/4: cpuidle: fix sparse and checkpatch warnings ARM: OMAP4: clock data: DPLLs are missing bypass clocks in their parent lists ARM: OMAP4: clock data: div_iva_hs_clk is a power-of-two divider ARM: OMAP4: Fix EMU clock domain always on ARM: OMAP4460: Workaround ABE DPLL failing to turn-on ARM: OMAP4: Enhance support for DPLLs with 4X multiplier ARM: OMAP4: Add function table for non-M4X dplls ARM: OMAP4: Update timer clock aliases
Diffstat (limited to 'arch/arm/mach-omap2/cpuidle34xx.c')
-rw-r--r--arch/arm/mach-omap2/cpuidle34xx.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/arch/arm/mach-omap2/cpuidle34xx.c b/arch/arm/mach-omap2/cpuidle34xx.c
index bca7a8885703..22590dbe8f14 100644
--- a/arch/arm/mach-omap2/cpuidle34xx.c
+++ b/arch/arm/mach-omap2/cpuidle34xx.c
@@ -40,6 +40,8 @@ struct omap3_idle_statedata {
40 u32 core_state; 40 u32 core_state;
41}; 41};
42 42
43static struct powerdomain *mpu_pd, *core_pd, *per_pd, *cam_pd;
44
43static struct omap3_idle_statedata omap3_idle_data[] = { 45static struct omap3_idle_statedata omap3_idle_data[] = {
44 { 46 {
45 .mpu_state = PWRDM_POWER_ON, 47 .mpu_state = PWRDM_POWER_ON,
@@ -71,7 +73,7 @@ static struct omap3_idle_statedata omap3_idle_data[] = {
71 }, 73 },
72}; 74};
73 75
74static struct powerdomain *mpu_pd, *core_pd, *per_pd, *cam_pd; 76/* Private functions */
75 77
76static int __omap3_enter_idle(struct cpuidle_device *dev, 78static int __omap3_enter_idle(struct cpuidle_device *dev,
77 struct cpuidle_driver *drv, 79 struct cpuidle_driver *drv,
@@ -260,11 +262,11 @@ static int omap3_enter_idle_bm(struct cpuidle_device *dev,
260 return ret; 262 return ret;
261} 263}
262 264
263DEFINE_PER_CPU(struct cpuidle_device, omap3_idle_dev); 265static DEFINE_PER_CPU(struct cpuidle_device, omap3_idle_dev);
264 266
265struct cpuidle_driver omap3_idle_driver = { 267static struct cpuidle_driver omap3_idle_driver = {
266 .name = "omap3_idle", 268 .name = "omap3_idle",
267 .owner = THIS_MODULE, 269 .owner = THIS_MODULE,
268 .states = { 270 .states = {
269 { 271 {
270 .enter = omap3_enter_idle_bm, 272 .enter = omap3_enter_idle_bm,
@@ -327,6 +329,8 @@ struct cpuidle_driver omap3_idle_driver = {
327 .safe_state_index = 0, 329 .safe_state_index = 0,
328}; 330};
329 331
332/* Public functions */
333
330/** 334/**
331 * omap3_idle_init - Init routine for OMAP3 idle 335 * omap3_idle_init - Init routine for OMAP3 idle
332 * 336 *