Skip to content

Commit

Permalink
drm/vc4: Use dev_err_probe when logging error registering HDMI audio
Browse files Browse the repository at this point in the history
Avoid logging a spurious error message with error -517
(-EPROBE_DEFER) whilst trying to load HDMI audio.

Signed-off-by: Dave Stevenson <[email protected]>
  • Loading branch information
6by9 committed Nov 29, 2021
1 parent 6b03749 commit 5d296d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/vc4/vc4_hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1848,7 +1848,7 @@ static int vc4_hdmi_audio_init(struct vc4_hdmi *vc4_hdmi)
snd_soc_card_set_drvdata(card, vc4_hdmi);
ret = devm_snd_soc_register_card(dev, card);
if (ret)
dev_err(dev, "Could not register sound card: %d\n", ret);
dev_err_probe(dev, ret, "Could not register sound card: %d\n");

return ret;

Expand Down

0 comments on commit 5d296d2

Please sign in to comment.