From: Kyungwoo Kang Date: Thu, 23 Nov 2017 09:00:44 +0000 (+0900) Subject: [COMMON] i2c: exynos5: Fix prevent defect X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=196f6974cb11e7f5991e3941b15cddd1a9e17995;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [COMMON] i2c: exynos5: Fix prevent defect CID 201957 prevent solve patch. Change-Id: I5f16c248540f561d4d9772fd84c3e8fc04e097e5 Signed-off-by: Kyungwoo Kang --- diff --git a/drivers/i2c/busses/i2c-exynos5.c b/drivers/i2c/busses/i2c-exynos5.c index ab3f10d4fdec..017a54051f55 100644 --- a/drivers/i2c/busses/i2c-exynos5.c +++ b/drivers/i2c/busses/i2c-exynos5.c @@ -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 */