Skip to content

Commit d742000

Browse files
ArvindYadavCsairlied
authored andcommitted
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]>
1 parent 855f652 commit d742000

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/gpu/drm/exynos/exynos_hdmi.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1907,6 +1907,8 @@ static int hdmi_probe(struct platform_device *pdev)
19071907
err_hdmiphy:
19081908
if (hdata->hdmiphy_port)
19091909
put_device(&hdata->hdmiphy_port->dev);
1910+
if (hdata->regs_hdmiphy)
1911+
iounmap(hdata->regs_hdmiphy);
19101912
err_ddc:
19111913
put_device(&hdata->ddc_adpt->dev);
19121914

@@ -1929,6 +1931,9 @@ static int hdmi_remove(struct platform_device *pdev)
19291931
if (hdata->hdmiphy_port)
19301932
put_device(&hdata->hdmiphy_port->dev);
19311933

1934+
if (hdata->regs_hdmiphy)
1935+
iounmap(hdata->regs_hdmiphy);
1936+
19321937
put_device(&hdata->ddc_adpt->dev);
19331938

19341939
return 0;

0 commit comments

Comments
 (0)