diff options
author | Jim Quinlan <james.quinlan@broadcom.com> | 2019-12-17 00:08:02 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-12-17 13:37:34 +0100 |
commit | f4dc4abdce4cc290555604107c04854a911b9441 (patch) | |
tree | 7108bc3fe9adc609b1e3e74db35db1b1c41914a4 | |
parent | spi: spi-ti-qspi: Remove unused macro for fclk frequency (diff) | |
download | linux-f4dc4abdce4cc290555604107c04854a911b9441.tar.xz linux-f4dc4abdce4cc290555604107c04854a911b9441.zip |
spi: bcm2835: no dev_err() on clk_get() -EPROBE_DEFER
Use dev_dbg() on -EPROBE_DEFER and dev_err() on all
other errors.
Signed-off-by: Jim Quinlan <jquinlan@broadcom.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Link: https://lore.kernel.org/r/20191216230802.45715-2-jquinlan@broadcom.com
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | drivers/spi/spi-bcm2835.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/spi/spi-bcm2835.c b/drivers/spi/spi-bcm2835.c index 69df79914504..b784c9fdf9ec 100644 --- a/drivers/spi/spi-bcm2835.c +++ b/drivers/spi/spi-bcm2835.c @@ -1317,7 +1317,10 @@ static int bcm2835_spi_probe(struct platform_device *pdev) bs->clk = devm_clk_get(&pdev->dev, NULL); if (IS_ERR(bs->clk)) { err = PTR_ERR(bs->clk); - dev_err(&pdev->dev, "could not get clk: %d\n", err); + if (err == -EPROBE_DEFER) + dev_dbg(&pdev->dev, "could not get clk: %d\n", err); + else + dev_err(&pdev->dev, "could not get clk: %d\n", err); goto out_controller_put; } |