aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_drv.h
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@virtuousgeek.org>2014-02-07 15:10:38 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-02-12 12:52:55 -0500
commit8bcd45534ddf68ab71aeed709dacd9cf65dc0f75 (patch)
treea70584ebcef73813dba47693530af6b87098fe4f /drivers/gpu/drm/i915/intel_drv.h
parentbd9b6a4ec5b963378d22d4ba41b5e61e0ecec9aa (diff)
drm/i915: alloc intel_fb in the intel_fbdev struct
Allocate this struct instead, so we can re-use another allocated elsewhere if needed. Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org> [danvet: WARN_ON if there's no backing storage attached to an fb, that's a bug.] Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_drv.h')
-rw-r--r--drivers/gpu/drm/i915/intel_drv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h
index 44067bce5e04..4386faf34a9b 100644
--- a/drivers/gpu/drm/i915/intel_drv.h
+++ b/drivers/gpu/drm/i915/intel_drv.h
@@ -110,7 +110,7 @@ struct intel_framebuffer {
110 110
111struct intel_fbdev { 111struct intel_fbdev {
112 struct drm_fb_helper helper; 112 struct drm_fb_helper helper;
113 struct intel_framebuffer ifb; 113 struct intel_framebuffer *fb;
114 struct list_head fbdev_list; 114 struct list_head fbdev_list;
115 struct drm_display_mode *our_mode; 115 struct drm_display_mode *our_mode;
116}; 116};