Commit fb34e14b authored by Felipe Balbi's avatar Felipe Balbi Committed by Tony Lindgren

I2C: TWL4030: Fix wrong variable warning

twl4030_i2c_write_u8 expects a u8 variable.
Change ctrl to be u8 in power_companion_init().
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent b9158d0e
...@@ -679,7 +679,8 @@ static int unprotect_pm_master(void) ...@@ -679,7 +679,8 @@ static int unprotect_pm_master(void)
static int power_companion_init(void) static int power_companion_init(void)
{ {
struct clk *osc; struct clk *osc;
u32 rate, ctrl = HFCLK_FREQ_26_MHZ; u32 rate;
u8 ctrl = HFCLK_FREQ_26_MHZ;
int e = 0; int e = 0;
if (cpu_is_omap2430()) if (cpu_is_omap2430())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment