diff options
author | Andrzej Hajda <a.hajda@samsung.com> | 2014-07-03 15:10:29 +0200 |
---|---|---|
committer | Inki Dae <daeinki@gmail.com> | 2014-08-03 16:52:17 +0900 |
commit | a8ea17f60e966d4dd07458fb614e3ddfba23770e (patch) | |
tree | 6040d4e81d55f516923fa11a6b925da6ffdb986e /drivers/gpu/drm/exynos | |
parent | 5c76c5b146b0f25ee55af190c6213faf63da0cd9 (diff) |
drm/exynos/ipp: correct address type
exynos_drm_gem_get_dma_addr returns dma_addr_t, type casting to void* and
back is not necessary.
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_ipp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_ipp.c b/drivers/gpu/drm/exynos/exynos_drm_ipp.c index 34d185c280c0..f3d8b5cf3438 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_ipp.c +++ b/drivers/gpu/drm/exynos/exynos_drm_ipp.c @@ -681,7 +681,6 @@ static struct drm_exynos_ipp_mem_node { struct drm_exynos_ipp_mem_node *m_node; struct drm_exynos_ipp_buf_info buf_info; - void *addr; int i; m_node = kzalloc(sizeof(*m_node), GFP_KERNEL); @@ -704,6 +703,8 @@ static struct drm_exynos_ipp_mem_node /* get dma address by handle */ if (qbuf->handle[i]) { + dma_addr_t *addr; + addr = exynos_drm_gem_get_dma_addr(drm_dev, qbuf->handle[i], file); if (IS_ERR(addr)) { @@ -712,7 +713,7 @@ static struct drm_exynos_ipp_mem_node } buf_info.handles[i] = qbuf->handle[i]; - buf_info.base[i] = *(dma_addr_t *) addr; + buf_info.base[i] = *addr; DRM_DEBUG_KMS("i[%d]base[0x%x]hd[0x%x]\n", i, buf_info.base[i], (int)buf_info.handles[i]); } |