diff options
-rw-r--r-- | drivers/i2c/busses/i2c-jz4780.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-jz4780.c b/drivers/i2c/busses/i2c-jz4780.c index 597408fc6834..f325663c27c5 100644 --- a/drivers/i2c/busses/i2c-jz4780.c +++ b/drivers/i2c/busses/i2c-jz4780.c | |||
@@ -770,7 +770,7 @@ static int jz4780_i2c_probe(struct platform_device *pdev) | |||
770 | 770 | ||
771 | ret = of_property_read_u32(pdev->dev.of_node, "clock-frequency", | 771 | ret = of_property_read_u32(pdev->dev.of_node, "clock-frequency", |
772 | &clk_freq); | 772 | &clk_freq); |
773 | if (ret || clk_freq == 0) { | 773 | if (ret) { |
774 | dev_err(&pdev->dev, "clock-frequency not specified in DT"); | 774 | dev_err(&pdev->dev, "clock-frequency not specified in DT"); |
775 | goto err; | 775 | goto err; |
776 | } | 776 | } |