mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
drm/rockchip: fix compile warning when build as modules
rockchip_drm_fb.c:In function 'rockchip_drm_fb_destroy': rockchip_drm_fb.c:51:21: warning: unused variable 'dev' [-Wunused-variable] Change-Id: I4b9f976c71b310c411a4d1fb9990743d7109b45f Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
This commit is contained in:
@@ -48,7 +48,6 @@ dma_addr_t rockchip_fb_get_dma_addr(struct drm_framebuffer *fb,
|
||||
static void rockchip_drm_fb_destroy(struct drm_framebuffer *fb)
|
||||
{
|
||||
struct rockchip_drm_fb *rockchip_fb = to_rockchip_fb(fb);
|
||||
struct drm_device *dev = fb->dev;
|
||||
struct drm_gem_object *obj;
|
||||
int i;
|
||||
|
||||
@@ -63,7 +62,7 @@ static void rockchip_drm_fb_destroy(struct drm_framebuffer *fb)
|
||||
void *start = phys_to_virt(rockchip_fb->start);
|
||||
void *end = phys_to_virt(rockchip_fb->size);
|
||||
|
||||
dma_unmap_sg(dev->dev, rockchip_fb->sgt->sgl,
|
||||
dma_unmap_sg(fb->dev->dev, rockchip_fb->sgt->sgl,
|
||||
rockchip_fb->sgt->nents, DMA_TO_DEVICE);
|
||||
sg_free_table(rockchip_fb->sgt);
|
||||
memblock_free(rockchip_fb->start, rockchip_fb->size);
|
||||
|
||||
Reference in New Issue
Block a user