From 196f6974cb11e7f5991e3941b15cddd1a9e17995 Mon Sep 17 00:00:00 2001 From: Kyungwoo Kang Date: Thu, 23 Nov 2017 18:00:44 +0900 Subject: [PATCH] [COMMON] i2c: exynos5: Fix prevent defect CID 201957 prevent solve patch. Change-Id: I5f16c248540f561d4d9772fd84c3e8fc04e097e5 Signed-off-by: Kyungwoo Kang --- drivers/i2c/busses/i2c-exynos5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.20.1