summaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorShubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>2019-12-09 16:10:49 +0530
committerWolfram Sang <wsa@the-dreams.de>2020-01-30 09:13:16 +0100
commit69dc44bcbc11fab397b614b1204ce10f3d74219c (patch)
tree9802c451d52ce44605ae56af7c1af61960989935 /drivers/i2c
parentbbf967b223b3f1b55eb494d735226152afbad64e (diff)
downloadlinux-69dc44bcbc11fab397b614b1204ce10f3d74219c.tar.bz2
i2c: cadence: Fix error printing in case of defer
Do not print error in case of EPROBE_DEFER. Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/busses/i2c-cadence.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-cadence.c b/drivers/i2c/busses/i2c-cadence.c
index 179776bef5c4..bae64c6d3e48 100644
--- a/drivers/i2c/busses/i2c-cadence.c
+++ b/drivers/i2c/busses/i2c-cadence.c
@@ -929,7 +929,8 @@ static int cdns_i2c_probe(struct platform_device *pdev)
id->clk = devm_clk_get(&pdev->dev, NULL);
if (IS_ERR(id->clk)) {
- dev_err(&pdev->dev, "input clock not found.\n");
+ if (PTR_ERR(id->clk) != -EPROBE_DEFER)
+ dev_err(&pdev->dev, "input clock not found.\n");
return PTR_ERR(id->clk);
}
ret = clk_prepare_enable(id->clk);