diff options
author | Jerome Brunet <jbrunet@baylibre.com> | 2021-05-20 09:31:36 +0200 |
---|---|---|
committer | Jerome Brunet <jbrunet@baylibre.com> | 2021-05-24 10:26:27 +0200 |
commit | 50cb321f16f6665873071792d89ab8563be1658d (patch) | |
tree | 0f879657c96e3ee13e4aaaa17489d5731bf47975 | |
parent | bc794f8c56abddf709f1f84fcb2a3c9e7d9cc9b4 (diff) |
clk: meson: axg-audio: improve deferral handling
Use dev_err_probe() for clock and reset resources to indicate the deferral
reason through sysfs when waiting for the resource to come up.
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://lore.kernel.org/r/20210520073136.272925-1-jbrunet@baylibre.com
-rw-r--r-- | drivers/clk/meson/axg-audio.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/clk/meson/axg-audio.c b/drivers/clk/meson/axg-audio.c index 7c8d02164443..bfe36bd41339 100644 --- a/drivers/clk/meson/axg-audio.c +++ b/drivers/clk/meson/axg-audio.c @@ -1665,8 +1665,7 @@ static int devm_clk_get_enable(struct device *dev, char *id) clk = devm_clk_get(dev, id); if (IS_ERR(clk)) { ret = PTR_ERR(clk); - if (ret != -EPROBE_DEFER) - dev_err(dev, "failed to get %s", id); + dev_err_probe(dev, ret, "failed to get %s", id); return ret; } @@ -1811,7 +1810,7 @@ static int axg_audio_clkc_probe(struct platform_device *pdev) ret = device_reset(dev); if (ret) { - dev_err(dev, "failed to reset device\n"); + dev_err_probe(dev, ret, "failed to reset device\n"); return ret; } |