Skip to contentSkip to conversation

OMAP1: pm.c : fix warning

PATCH In review Komal Shah 2 participants 2 messages Jan 4, 2006 – Jan 5, 2006

Subsystems (4)
lore
Share & tools
lore

Komal Shah

author
#0 lore raw

PATCH 1/1 OMAP1: pm.c : fix warning

Tony,

Attached patch fixes following warning:

arch/arm/mach-omap1/pm.c: In function `omap_pm_idle':
arch/arm/mach-omap1/pm.c:140: warning: unused variable `vbus_active'

---Komal Shah
http://komalshah.blogspot.com/

__________________________________________
Yahoo! DSL – Something to write home about.
Just $16.99/mo. or less.
dsl.yahoo.com

arch/arm/mach-omap1/pm.c +1 -1
index 382ddaa..d483ac4 100644
@@ -137,9 +137,9 @@ void omap_pm_idle(void)
 
 	do_sleep = 0;
 	while (enable_dyn_sleep) {
-		extern int vbus_active;
 
 #ifdef CONFIG_CBUS_TAHVO_USB
+		extern int vbus_active;
 		/* Clock requirements? */
 		if (vbus_active)
 			break;
reviewer
#1 lore raw
Quoted 14 lines · Komal Shah

Tony,

Attached patch fixes following warning:

arch/arm/mach-omap1/pm.c: In function `omap_pm_idle':
arch/arm/mach-omap1/pm.c:140: warning: unused variable `vbus_active'

---Komal Shah
http://komalshah.blogspot.com/

Quoted 4 lines

__________________________________________
Yahoo! DSL – Something to write home about.
Just $16.99/mo. or less.
dsl.yahoo.com

Content-Description: 2034432102-pm-fix.patch

Quoted 5 lines
arch/arm/mach-omap1/pm.c +0 -0
index 382ddaa..d483ac4 100644

arch/arm/mach-omap1/pm.c void omap_pm_idle(void) · line 145

Quoted 10 lines
arch/arm/mach-omap1/pm.c +1 -1
@@ -137,9 +137,9 @@ void omap_pm_idle(void)
 
 	do_sleep = 0;
 	while (enable_dyn_sleep) {
-		extern int vbus_active;
 
 #ifdef CONFIG_CBUS_TAHVO_USB
+		extern int vbus_active;
 		/* Clock requirements? */
 		if (vbus_active)
 			break;

Thanks, pushed.

Tony