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 <mark.yao@rock-chips.com>
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;
#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) {