From fb34e14bd781b7afec9ff4caa85eceb0112ac182 Mon Sep 17 00:00:00 2001 From: Felipe Balbi Date: Fri, 11 Apr 2008 14:51:36 +0300 Subject: [PATCH] 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: Felipe Balbi Signed-off-by: Tony Lindgren --- drivers/i2c/chips/twl4030-core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/chips/twl4030-core.c b/drivers/i2c/chips/twl4030-core.c index eedbebd75c8..934433e5d2c 100644 --- a/drivers/i2c/chips/twl4030-core.c +++ b/drivers/i2c/chips/twl4030-core.c @@ -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()) -- 2.41.0