mirror of https://gitee.com/openkylin/linux.git
drm/exynos: use release_mem_region instead of release_resource
To make a api pair of request_mem_region and release_mem_region, release_mem_region is used instead of release_resource. Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
This commit is contained in:
parent
590dfe2f3b
commit
485bc54c33
|
@ -1116,8 +1116,8 @@ static int __devinit hdmi_probe(struct platform_device *pdev)
|
|||
err_iomap:
|
||||
iounmap(hdata->regs);
|
||||
err_req_region:
|
||||
release_resource(hdata->regs_res);
|
||||
kfree(hdata->regs_res);
|
||||
release_mem_region(hdata->regs_res->start,
|
||||
resource_size(hdata->regs_res));
|
||||
err_resource:
|
||||
hdmi_resources_cleanup(hdata);
|
||||
err_data:
|
||||
|
@ -1145,8 +1145,8 @@ static int __devexit hdmi_remove(struct platform_device *pdev)
|
|||
|
||||
iounmap(hdata->regs);
|
||||
|
||||
release_resource(hdata->regs_res);
|
||||
kfree(hdata->regs_res);
|
||||
release_mem_region(hdata->regs_res->start,
|
||||
resource_size(hdata->regs_res));
|
||||
|
||||
/* hdmiphy i2c driver */
|
||||
i2c_del_driver(&hdmiphy_driver);
|
||||
|
|
Loading…
Reference in New Issue