Skip to content

Commit

Permalink
drivers: iio: frequency: ad7192: Fix failed clocks warning
Browse files Browse the repository at this point in the history
This patch verifies that the return message from ad9172_get_clks is
different from EPROBE_DEFER, this way the dev_err message is not thrown in
case of a retry.

Signed-off-by: Mircea Caprioru <mircea.caprioru@analog.com>
  • Loading branch information
Mircea Caprioru authored and commodo committed May 22, 2019
1 parent 7e7f050 commit ccf4d0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/iio/frequency/ad9172.c
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,8 @@ static int ad9172_probe(struct spi_device *spi)

ret = ad9172_get_clks(conv);
if (ret < 0) {
dev_err(&spi->dev, "Failed to get clocks\n");
if (ret != -EPROBE_DEFER)
dev_err(&spi->dev, "Failed to get clocks\n");
goto out;
}

Expand Down

0 comments on commit ccf4d0f

Please sign in to comment.