Commit 9ab34151 authored by Thierry Reding's avatar Thierry Reding

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: default avatarThierry Reding <treding@nvidia.com>
parent 9b57f5f2
...@@ -247,7 +247,7 @@ static int tegra_fbdev_probe(struct drm_fb_helper *helper, ...@@ -247,7 +247,7 @@ static int tegra_fbdev_probe(struct drm_fb_helper *helper,
info->var.yoffset * fb->pitches[0]; info->var.yoffset * fb->pitches[0];
drm->mode_config.fb_base = (resource_size_t)bo->paddr; 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->screen_size = size;
info->fix.smem_start = (unsigned long)(bo->paddr + offset); info->fix.smem_start = (unsigned long)(bo->paddr + offset);
info->fix.smem_len = size; info->fix.smem_len = size;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment