diff options
author | Seung-Woo Kim <sw0312.kim@samsung.com> | 2011-12-22 11:30:09 +0900 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2012-01-27 10:43:23 +0900 |
commit | 485bc54c3360e9c1d595c48c9c82dbd3a51e133e (patch) | |
tree | 5e6f726704f8377d90081e0db5dad0e0dfa50663 /drivers/gpu | |
parent | 590dfe2f3bbbbeee806ee91bef68ba2a6afc16d2 (diff) | |
download | linux-485bc54c3360e9c1d595c48c9c82dbd3a51e133e.tar.gz linux-485bc54c3360e9c1d595c48c9c82dbd3a51e133e.tar.bz2 linux-485bc54c3360e9c1d595c48c9c82dbd3a51e133e.zip |
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>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_hdmi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c index f48f7ce92f5f..3429d3fd93f3 100644 --- a/drivers/gpu/drm/exynos/exynos_hdmi.c +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c @@ -1116,8 +1116,8 @@ err_ddc: 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); |