summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/exynos
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-09-05 17:01:35 +0530
committerInki Dae <inki.dae@samsung.com>2013-09-16 21:57:04 +0900
commit19e307bc894edd8174ea83ee0ef102291a8bbc8d (patch)
tree5fbe06ce30b380fdfe3c26c58e5006732c88df8d /drivers/gpu/drm/exynos
parent09bd14b2cc9ec2e7261019566fac0afd4cf21d51 (diff)
downloadblackbird-op-linux-19e307bc894edd8174ea83ee0ef102291a8bbc8d.tar.gz
blackbird-op-linux-19e307bc894edd8174ea83ee0ef102291a8bbc8d.zip
drm/exynos: Fix address space warning in exynos_drm_buf.c
Fixes the following warning: drivers/gpu/drm/exynos/exynos_drm_buf.c:66:29: warning: incorrect type in assignment (different address spaces) drivers/gpu/drm/exynos/exynos_drm_buf.c:66:29: expected void [noderef] <asn:2>*kvaddr drivers/gpu/drm/exynos/exynos_drm_buf.c:66:29: got void * Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> 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_buf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_buf.c b/drivers/gpu/drm/exynos/exynos_drm_buf.c
index 3445a0f3a6b2..d20a7afab571 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_buf.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_buf.c
@@ -63,7 +63,8 @@ static int lowlevel_buffer_allocate(struct drm_device *dev,
return -ENOMEM;
}
- buf->kvaddr = dma_alloc_attrs(dev->dev, buf->size,
+ buf->kvaddr = (void __iomem *)dma_alloc_attrs(dev->dev,
+ buf->size,
&buf->dma_addr, GFP_KERNEL,
&buf->dma_attrs);
if (!buf->kvaddr) {
OpenPOWER on IntegriCloud