[COMMON] i2c: exynos5: Fix prevent defect
authorKyungwoo Kang <kwoo.kang@samsung.com>
Thu, 23 Nov 2017 09:00:44 +0000 (18:00 +0900)
committermyung-su.cha <myung-su.cha@samsung.com>
Wed, 9 May 2018 12:14:45 +0000 (21:14 +0900)
CID 201957 prevent solve patch.

Change-Id: I5f16c248540f561d4d9772fd84c3e8fc04e097e5
Signed-off-by: Kyungwoo Kang <kwoo.kang@samsung.com>
drivers/i2c/busses/i2c-exynos5.c

index ab3f10d4fdec723652b0931e3a3b1740b54f625f..017a54051f55479e66d25ae315272fbbd2809c17 100644 (file)
@@ -384,7 +384,7 @@ static int exynos5_i2c_set_timing(struct exynos5_i2c *i2c, bool hs_timings)
                        dev_err(i2c->dev, "Failed to set clock\n");
        }
 
-       ipclk = clk_get_rate(i2c->rate_clk);
+       ipclk = (unsigned int)clk_get_rate(i2c->rate_clk);
 
        if (mode == HSI2C_HIGH_SPD) {
                /* ipclk's unit is Hz, op_clk's unit is Hz */