mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
gpu/drm/exynos/exynos_hdmi - Unmap region obtained by of_iomap
Free memory mapping, if hdmi_probe is not successful. Signed-off-by: Arvind Yadav <[email protected]> Signed-off-by: Inki Dae <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
This commit is contained in:
parent
855f6529c7
commit
d742000240
1 changed files with 5 additions and 0 deletions
|
|
@ -1907,6 +1907,8 @@ err_disable_pm_runtime:
|
|||
err_hdmiphy:
|
||||
if (hdata->hdmiphy_port)
|
||||
put_device(&hdata->hdmiphy_port->dev);
|
||||
if (hdata->regs_hdmiphy)
|
||||
iounmap(hdata->regs_hdmiphy);
|
||||
err_ddc:
|
||||
put_device(&hdata->ddc_adpt->dev);
|
||||
|
||||
|
|
@ -1929,6 +1931,9 @@ static int hdmi_remove(struct platform_device *pdev)
|
|||
if (hdata->hdmiphy_port)
|
||||
put_device(&hdata->hdmiphy_port->dev);
|
||||
|
||||
if (hdata->regs_hdmiphy)
|
||||
iounmap(hdata->regs_hdmiphy);
|
||||
|
||||
put_device(&hdata->ddc_adpt->dev);
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue