|
@@ -798,12 +798,7 @@ static int hdmi_codec_probe(struct platform_device *pdev)
|
|
|
|
|
|
static int hdmi_codec_remove(struct platform_device *pdev)
|
|
|
{
|
|
|
- struct device *dev = &pdev->dev;
|
|
|
- struct hdmi_codec_priv *hcp;
|
|
|
-
|
|
|
- hcp = dev_get_drvdata(dev);
|
|
|
- kfree(hcp->chmap_info);
|
|
|
- snd_soc_unregister_codec(dev);
|
|
|
+ snd_soc_unregister_codec(&pdev->dev);
|
|
|
|
|
|
return 0;
|
|
|
}
|