summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKishore Kadiyala <kishore.kadiyala@ti.com>2010-04-08 11:21:24 +0530
committerSantosh Shilimkar <santosh.shilimkar@ti.com>2010-04-08 14:28:15 +0530
commit6a27d09699a459517db7d6fff993739d93f993ab (patch)
tree3a37acd2fc02fd1efdf20fcbe765c91f3d73009e
parent5c9f0ff731da2d0041912188d481f573629c7f33 (diff)
MMC-TWL:Kloc Work Fix
'read_reg' is used unintialised in this function Signed-off-by: Kishore Kadiyala <kishore.kadiyala@ti.com>
-rw-r--r--arch/arm/mach-omap2/mmc-twl4030.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/mmc-twl4030.c b/arch/arm/mach-omap2/mmc-twl4030.c
index 589a3871062d..09cd15b8f109 100644
--- a/arch/arm/mach-omap2/mmc-twl4030.c
+++ b/arch/arm/mach-omap2/mmc-twl4030.c
@@ -57,7 +57,7 @@ static struct twl_mmc_controller {
static int twl_mmc_card_detect(int irq)
{
unsigned i;
- u8 read_reg;
+ u8 read_reg = 0;
unsigned res;
for (i = 0; i < ARRAY_SIZE(hsmmc); i++) {