aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/sh_mobile_hdmi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/sh_mobile_hdmi.c')
-rw-r--r--drivers/video/sh_mobile_hdmi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/video/sh_mobile_hdmi.c b/drivers/video/sh_mobile_hdmi.c
index a2cb49254eb2..ef989d94511c 100644
--- a/drivers/video/sh_mobile_hdmi.c
+++ b/drivers/video/sh_mobile_hdmi.c
@@ -967,7 +967,7 @@ static int __init sh_hdmi_probe(struct platform_device *pdev)
967 ret = snd_soc_register_codec(&pdev->dev, 967 ret = snd_soc_register_codec(&pdev->dev,
968 &soc_codec_dev_sh_hdmi, &sh_hdmi_dai, 1); 968 &soc_codec_dev_sh_hdmi, &sh_hdmi_dai, 1);
969 if (ret < 0) 969 if (ret < 0)
970 goto egetclk; 970 goto esndreg;
971 971
972 hdmi->dev = &pdev->dev; 972 hdmi->dev = &pdev->dev;
973 973
@@ -1054,6 +1054,8 @@ eclkenable:
1054erate: 1054erate:
1055 clk_put(hdmi->hdmi_clk); 1055 clk_put(hdmi->hdmi_clk);
1056egetclk: 1056egetclk:
1057 snd_soc_unregister_codec(&pdev->dev);
1058esndreg:
1057 kfree(hdmi); 1059 kfree(hdmi);
1058 1060
1059 return ret; 1061 return ret;