Skip to content

Commit

Permalink
gpu/drm/exynos/exynos_hdmi - Unmap region obtained by of_iomap
Browse files Browse the repository at this point in the history
Free memory mapping, if hdmi_probe is not successful.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Arvind Yadav authored and Dave Airlie committed Nov 24, 2016
1 parent 855f652 commit d742000
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/gpu/drm/exynos/exynos_hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1907,6 +1907,8 @@ static int hdmi_probe(struct platform_device *pdev)
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);

Expand All @@ -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;
Expand Down

0 comments on commit d742000

Please sign in to comment.