]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
I2C: TWL4030: Fix wrong variable warning
authorFelipe Balbi <felipe.balbi@nokia.com>
Fri, 11 Apr 2008 11:51:36 +0000 (14:51 +0300)
committerTony Lindgren <tony@atomide.com>
Fri, 11 Apr 2008 19:05:45 +0000 (12:05 -0700)
twl4030_i2c_write_u8 expects a u8 variable.
Change ctrl to be u8 in power_companion_init().

Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/i2c/chips/twl4030-core.c

index eedbebd75c859706208de78a38db364e90eca2b1..934433e5d2c3eda2c997d77638635833936f6b5f 100644 (file)
@@ -679,7 +679,8 @@ static int unprotect_pm_master(void)
 static int power_companion_init(void)
 {
        struct clk *osc;
-       u32 rate, ctrl = HFCLK_FREQ_26_MHZ;
+       u32 rate;
+       u8 ctrl = HFCLK_FREQ_26_MHZ;
        int e = 0;
 
        if (cpu_is_omap2430())