diff options
author | Thierry Reding <treding@nvidia.com> | 2013-11-08 13:18:14 +0100 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2013-12-03 10:05:04 +0100 |
commit | 9ab34151a9aab94685a8ce4b030800151f2bca66 (patch) | |
tree | 7c3b6c789e4ef9249a58d74eb21f51f4c87cc0ef /drivers/gpu | |
parent | 9b57f5f2c53e1fb2394587fe61af38a2a52e3508 (diff) | |
download | blackbird-op-linux-9ab34151a9aab94685a8ce4b030800151f2bca66.tar.gz blackbird-op-linux-9ab34151a9aab94685a8ce4b030800151f2bca66.zip |
drm/tegra: Force cast to __iomem to make sparse happy
The fbdev screen memory pointer is annotated __iomem, so cast the kernel
virtual address to that address space to make the warning go away.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/tegra/fb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tegra/fb.c b/drivers/gpu/drm/tegra/fb.c index 490f7719e317..a3835e7de184 100644 --- a/drivers/gpu/drm/tegra/fb.c +++ b/drivers/gpu/drm/tegra/fb.c @@ -247,7 +247,7 @@ static int tegra_fbdev_probe(struct drm_fb_helper *helper, info->var.yoffset * fb->pitches[0]; drm->mode_config.fb_base = (resource_size_t)bo->paddr; - info->screen_base = bo->vaddr + offset; + info->screen_base = (void __iomem *)bo->vaddr + offset; info->screen_size = size; info->fix.smem_start = (unsigned long)(bo->paddr + offset); info->fix.smem_len = size; |