From: Mark Yao Date: Thu, 8 Sep 2016 06:02:27 +0000 (+0800) Subject: drm/rockchip: fix error when build rockchip drm as modules X-Git-Tag: firefly_0821_release~1564 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8fc323e440405bdc63d64a28d2d009087be95530;p=firefly-linux-kernel-4.4.55.git drm/rockchip: fix error when build rockchip drm as modules fix build error: drivers/gpu/drm/rockchip/rockchip_drm_fb.c: In function 'rockchip_drm_fb_destroy': drivers/gpu/drm/rockchip/rockchip_drm_fb.c:74:21: error: 'struct rockchip_drm_fb' has no member named 'sgt' Change-Id: I413391291be21ebf452bde340a788dcf2d1c76d4 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 9be5be58c2c8..22dd5bcefda9 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_fb.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_fb.c @@ -71,7 +71,7 @@ static void rockchip_drm_fb_destroy(struct drm_framebuffer *fb) } } #else - WARN_ON(rockchip_fb->sgt); + WARN_ON(rockchip_fb->logo); #endif drm_framebuffer_cleanup(fb);