diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2014-09-20 06:07:37 -0400 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2014-09-29 16:43:25 -0400 |
commit | 22762ccb0ef02a8fbdde09046d7095d46f3b7095 (patch) | |
tree | cbb6029097bf4755a9596adcd4c157e8bd5569bf | |
parent | 8b57cebedd3e8a384ab678a69e9b7128eb438a1f (diff) |
i2c: rcar: remove sign-compare flaw
gcc rightfully says:
drivers/i2c/busses/i2c-rcar.c:198:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
-rw-r--r-- | drivers/i2c/busses/i2c-rcar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-rcar.c b/drivers/i2c/busses/i2c-rcar.c index b694cba63807..d826e82dd997 100644 --- a/drivers/i2c/busses/i2c-rcar.c +++ b/drivers/i2c/busses/i2c-rcar.c | |||
@@ -195,7 +195,7 @@ static int rcar_i2c_clock_calculate(struct rcar_i2c_priv *priv, | |||
195 | */ | 195 | */ |
196 | rate = clk_get_rate(priv->clk); | 196 | rate = clk_get_rate(priv->clk); |
197 | cdf = rate / 20000000; | 197 | cdf = rate / 20000000; |
198 | if (cdf >= 1 << cdf_width) { | 198 | if (cdf >= 1U << cdf_width) { |
199 | dev_err(dev, "Input clock %lu too high\n", rate); | 199 | dev_err(dev, "Input clock %lu too high\n", rate); |
200 | return -EIO; | 200 | return -EIO; |
201 | } | 201 | } |