diff options
author | Sanjeev Premi <premi@ti.com> | 2010-09-23 21:27:18 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2010-09-23 21:27:18 -0400 |
commit | ca828760f96ee8f0b6c93400599844761aa69dc0 (patch) | |
tree | 046f876cf80e1fc0ae166cc76d112c9cb6413e12 /arch/arm/plat-omap | |
parent | 39cdd14570e3c32728d407cb38de17e80cf16104 (diff) |
omap2: fix assorted compiler warnings
This patch fixes these compiler warnings:
CC arch/arm/mach-omap2/mux.o
arch/arm/mach-omap2/mux.c: In function 'omap_mux_init_gpio':
arch/arm/mach-omap2/mux.c:90: warning: 'gpio_mux' may be used uninitial
ized in this function
CC arch/arm/plat-omap/gpio.o
arch/arm/plat-omap/gpio.c: In function 'omap2_gpio_resume_after_idle':
arch/arm/plat-omap/gpio.c:2152: warning: 'l' may be used uninitialized
in this function
arch/arm/plat-omap/gpio.c: In function 'omap2_gpio_prepare_for_idle':
arch/arm/plat-omap/gpio.c:2085: warning: 'l2' may be used uninitialized
in this function
arch/arm/plat-omap/gpio.c:2085: warning: 'l1' may be used uninitialized
in this function
CC arch/arm/mach-omap2/board-omap4panda.o
arch/arm/mach-omap2/board-omap4panda.c: In function 'omap4_panda_init':
arch/arm/mach-omap2/board-omap4panda.c:277: warning: unused variable 's
tatus'
Signed-off-by: Sanjeev Premi <premi@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/plat-omap')
-rw-r--r-- | arch/arm/plat-omap/gpio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/plat-omap/gpio.c b/arch/arm/plat-omap/gpio.c index 11c5b0eefb85..c05c653d1674 100644 --- a/arch/arm/plat-omap/gpio.c +++ b/arch/arm/plat-omap/gpio.c | |||
@@ -2084,7 +2084,7 @@ void omap2_gpio_prepare_for_idle(int power_state) | |||
2084 | 2084 | ||
2085 | for (i = min; i < gpio_bank_count; i++) { | 2085 | for (i = min; i < gpio_bank_count; i++) { |
2086 | struct gpio_bank *bank = &gpio_bank[i]; | 2086 | struct gpio_bank *bank = &gpio_bank[i]; |
2087 | u32 l1, l2; | 2087 | u32 l1 = 0, l2 = 0; |
2088 | int j; | 2088 | int j; |
2089 | 2089 | ||
2090 | for (j = 0; j < hweight_long(bank->dbck_enable_mask); j++) | 2090 | for (j = 0; j < hweight_long(bank->dbck_enable_mask); j++) |
@@ -2152,7 +2152,7 @@ void omap2_gpio_resume_after_idle(void) | |||
2152 | min = 1; | 2152 | min = 1; |
2153 | for (i = min; i < gpio_bank_count; i++) { | 2153 | for (i = min; i < gpio_bank_count; i++) { |
2154 | struct gpio_bank *bank = &gpio_bank[i]; | 2154 | struct gpio_bank *bank = &gpio_bank[i]; |
2155 | u32 l, gen, gen0, gen1; | 2155 | u32 l = 0, gen, gen0, gen1; |
2156 | int j; | 2156 | int j; |
2157 | 2157 | ||
2158 | for (j = 0; j < hweight_long(bank->dbck_enable_mask); j++) | 2158 | for (j = 0; j < hweight_long(bank->dbck_enable_mask); j++) |