All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] PM: Fix compile warnings with !CONFIG_OMAP_PM_SRF
@ 2009-03-12 20:58 Sanjeev Premi
  2009-03-12 22:00 ` Kevin Hilman
  0 siblings, 1 reply; 2+ messages in thread
From: Sanjeev Premi @ 2009-03-12 20:58 UTC (permalink / raw)
  To: linux-omap; +Cc: Sanjeev Premi

Fixes the compile warnings:

  CC      arch/arm/mach-omap2/pm.o
arch/arm/mach-omap2/pm.c:47: warning: 'vdd1_locked' defined but not used
arch/arm/mach-omap2/pm.c:48: warning: 'vdd2_locked' defined but not used

Signed-off-by: Sanjeev Premi <premi@ti.com>
---
 arch/arm/mach-omap2/pm.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c
index 61c6dfb..0fe6f1a 100644
--- a/arch/arm/mach-omap2/pm.c
+++ b/arch/arm/mach-omap2/pm.c
@@ -44,8 +44,10 @@ unsigned short clocks_off_while_idle;
 unsigned short enable_off_mode;
 unsigned short voltage_off_while_idle;
 atomic_t sleep_block = ATOMIC_INIT(0);
+#ifdef CONFIG_OMAP_PM_SRF
 static int vdd1_locked;
 static int vdd2_locked;
+#endif
 
 static ssize_t idle_show(struct kobject *, struct kobj_attribute *, char *);
 static ssize_t idle_store(struct kobject *k, struct kobj_attribute *,
-- 
1.5.6


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] PM: Fix compile warnings with !CONFIG_OMAP_PM_SRF
  2009-03-12 20:58 [PATCH] PM: Fix compile warnings with !CONFIG_OMAP_PM_SRF Sanjeev Premi
@ 2009-03-12 22:00 ` Kevin Hilman
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Hilman @ 2009-03-12 22:00 UTC (permalink / raw)
  To: Sanjeev Premi; +Cc: linux-omap

Sanjeev Premi <premi@ti.com> writes:

> Fixes the compile warnings:
>
>   CC      arch/arm/mach-omap2/pm.o
> arch/arm/mach-omap2/pm.c:47: warning: 'vdd1_locked' defined but not used
> arch/arm/mach-omap2/pm.c:48: warning: 'vdd2_locked' defined but not used
>
> Signed-off-by: Sanjeev Premi <premi@ti.com>

Thanks, pushing to PM, with a slight change.  I moved the definitions
down into another #ifdef CONFIG_OMAP_PM_SRF instead of adding a new
one.

Kevin

> ---
>  arch/arm/mach-omap2/pm.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c
> index 61c6dfb..0fe6f1a 100644
> --- a/arch/arm/mach-omap2/pm.c
> +++ b/arch/arm/mach-omap2/pm.c
> @@ -44,8 +44,10 @@ unsigned short clocks_off_while_idle;
>  unsigned short enable_off_mode;
>  unsigned short voltage_off_while_idle;
>  atomic_t sleep_block = ATOMIC_INIT(0);
> +#ifdef CONFIG_OMAP_PM_SRF
>  static int vdd1_locked;
>  static int vdd2_locked;
> +#endif
>  
>  static ssize_t idle_show(struct kobject *, struct kobj_attribute *, char *);
>  static ssize_t idle_store(struct kobject *k, struct kobj_attribute *,
> -- 
> 1.5.6
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-03-12 22:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-12 20:58 [PATCH] PM: Fix compile warnings with !CONFIG_OMAP_PM_SRF Sanjeev Premi
2009-03-12 22:00 ` Kevin Hilman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.