Skip to content

Commit 1e2de68

Browse files
committed
fixup! drm: apple: audio: Make the DP/HDMI audio driver a full driver
Signed-off-by: Janne Grunau <[email protected]>
1 parent c1fa8a2 commit 1e2de68

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/gpu/drm/apple/audio.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,8 @@ static void dcpaud_comp_unbind(struct device *dev, struct device *main,
661661
{
662662
struct dcp_audio *dcpaud = dev_get_drvdata(dev);
663663

664-
snd_card_free(dcpaud->card);
664+
/* snd_card_free_when_closed() checks for NULL */
665+
snd_card_free_when_closed(dcpaud->card);
665666
}
666667

667668
static const struct component_ops dcpaud_comp_ops = {

0 commit comments

Comments
 (0)