aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon_fb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_fb.c')
-rw-r--r--drivers/gpu/drm/radeon/radeon_fb.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_fb.c b/drivers/gpu/drm/radeon/radeon_fb.c
index 1ba704eedefb..325e40b5e0b6 100644
--- a/drivers/gpu/drm/radeon/radeon_fb.c
+++ b/drivers/gpu/drm/radeon/radeon_fb.c
@@ -146,6 +146,7 @@ int radeonfb_create(struct drm_device *dev,
146 unsigned long tmp; 146 unsigned long tmp;
147 bool fb_tiled = false; /* useful for testing */ 147 bool fb_tiled = false; /* useful for testing */
148 u32 tiling_flags = 0; 148 u32 tiling_flags = 0;
149 int crtc_count;
149 150
150 mode_cmd.width = surface_width; 151 mode_cmd.width = surface_width;
151 mode_cmd.height = surface_height; 152 mode_cmd.height = surface_height;
@@ -217,7 +218,11 @@ int radeonfb_create(struct drm_device *dev,
217 rfbdev = info->par; 218 rfbdev = info->par;
218 rfbdev->helper.funcs = &radeon_fb_helper_funcs; 219 rfbdev->helper.funcs = &radeon_fb_helper_funcs;
219 rfbdev->helper.dev = dev; 220 rfbdev->helper.dev = dev;
220 ret = drm_fb_helper_init_crtc_count(&rfbdev->helper, 2, 221 if (rdev->flags & RADEON_SINGLE_CRTC)
222 crtc_count = 1;
223 else
224 crtc_count = 2;
225 ret = drm_fb_helper_init_crtc_count(&rfbdev->helper, crtc_count,
221 RADEONFB_CONN_LIMIT); 226 RADEONFB_CONN_LIMIT);
222 if (ret) 227 if (ret)
223 goto out_unref; 228 goto out_unref;