From: Mark Yao Date: Wed, 14 Dec 2016 03:47:21 +0000 (+0800) Subject: drm/rockchip: fix compile warning unused private X-Git-Tag: firefly_0821_release~1069 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=808129b95acb962ccbb97e294710f71cc962692e;p=firefly-linux-kernel-4.4.55.git drm/rockchip: fix compile warning unused private Fix warning: drivers/gpu/drm/rockchip/rockchip_drm_fb.c: In function 'rockchip_drm_fb_destroy': drivers/gpu/drm/rockchip/rockchip_drm_fb.c:50:31: warning: unused variable 'private' [-Wunused-variable] Change-Id: Id120d86173823a68b9136a99f17fe5415041e471 Signed-off-by: Mark Yao --- diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_fb.c b/drivers/gpu/drm/rockchip/rockchip_drm_fb.c index 39759c8a6fc5..7bb9e787bf41 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_fb.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_fb.c @@ -47,7 +47,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 rockchip_drm_private *private = fb->dev->dev_private; struct drm_gem_object *obj; int i; @@ -59,6 +58,7 @@ static void rockchip_drm_fb_destroy(struct drm_framebuffer *fb) #ifndef MODULE if (rockchip_fb->logo) { + struct rockchip_drm_private *private = fb->dev->dev_private; struct rockchip_logo *logo = rockchip_fb->logo; if (!--logo->count) {