diff options
Diffstat (limited to 'drivers/i2c/busses/i2c-rcar.c')
-rw-r--r-- | drivers/i2c/busses/i2c-rcar.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/i2c/busses/i2c-rcar.c b/drivers/i2c/busses/i2c-rcar.c index 1f285a3be5c5..98276eb5f6e7 100644 --- a/drivers/i2c/busses/i2c-rcar.c +++ b/drivers/i2c/busses/i2c-rcar.c | |||
@@ -234,9 +234,9 @@ static int rcar_i2c_clock_calculate(struct rcar_i2c_priv *priv, | |||
234 | u32 cdf_width; | 234 | u32 cdf_width; |
235 | unsigned long rate; | 235 | unsigned long rate; |
236 | 236 | ||
237 | if (!clkp) { | 237 | if (IS_ERR(clkp)) { |
238 | dev_err(dev, "there is no peripheral_clk\n"); | 238 | dev_err(dev, "couldn't get clock\n"); |
239 | return -EIO; | 239 | return PTR_ERR(clkp); |
240 | } | 240 | } |
241 | 241 | ||
242 | switch (priv->devtype) { | 242 | switch (priv->devtype) { |