diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2014-02-07 15:10:38 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-02-12 12:52:55 -0500 |
commit | 8bcd45534ddf68ab71aeed709dacd9cf65dc0f75 (patch) | |
tree | a70584ebcef73813dba47693530af6b87098fe4f /drivers/gpu/drm/i915/intel_display.c | |
parent | bd9b6a4ec5b963378d22d4ba41b5e61e0ecec9aa (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_display.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_display.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 807e815503d0..ac0f6b5cfdfa 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c | |||
@@ -7769,11 +7769,11 @@ mode_fits_in_fbdev(struct drm_device *dev, | |||
7769 | if (dev_priv->fbdev == NULL) | 7769 | if (dev_priv->fbdev == NULL) |
7770 | return NULL; | 7770 | return NULL; |
7771 | 7771 | ||
7772 | obj = dev_priv->fbdev->ifb.obj; | 7772 | obj = dev_priv->fbdev->fb->obj; |
7773 | if (obj == NULL) | 7773 | if (obj == NULL) |
7774 | return NULL; | 7774 | return NULL; |
7775 | 7775 | ||
7776 | fb = &dev_priv->fbdev->ifb.base; | 7776 | fb = &dev_priv->fbdev->fb->base; |
7777 | if (fb->pitches[0] < intel_framebuffer_pitch_for_width(mode->hdisplay, | 7777 | if (fb->pitches[0] < intel_framebuffer_pitch_for_width(mode->hdisplay, |
7778 | fb->bits_per_pixel)) | 7778 | fb->bits_per_pixel)) |
7779 | return NULL; | 7779 | return NULL; |