Skip to content

Commit e1923ab

Browse files
committed
drm/<drivers>: Drop fbdev info flags
- FBINFO_CAN_FORCE_OUTPUT has been a lie ever since we nerfed&removed the entire panic handling code in our fbdev emulation. We might restore kms panic output, but not through the bazillion of legacy code layers called fbdev/fbcon, there's just no way to make that work safely. - With the module check change FBINFO_DEFAULT is always 0, so can be removed too. That removes another change to cargo-cult stuff in kms drivers, yay! Reviewed-by: Sean Paul <seanpaul@chromium.org> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20170706125735.28299-5-daniel.vetter@ffwll.ch Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
1 parent 060f33b commit e1923ab

15 files changed

Lines changed: 0 additions & 15 deletions

File tree

‎drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,6 @@ static int amdgpufb_create(struct drm_fb_helper *helper,
245245

246246
drm_fb_helper_fill_fix(info, fb->pitches[0], fb->format->depth);
247247

248-
info->flags = FBINFO_DEFAULT | FBINFO_CAN_FORCE_OUTPUT;
249248
info->fbops = &amdgpufb_ops;
250249

251250
tmp = amdgpu_bo_gpu_offset(abo) - adev->mc.vram_start;

‎drivers/gpu/drm/armada/armada_fbdev.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ static int armada_fb_create(struct drm_fb_helper *fbh,
8181

8282
strlcpy(info->fix.id, "armada-drmfb", sizeof(info->fix.id));
8383
info->par = fbh;
84-
info->flags = FBINFO_DEFAULT | FBINFO_CAN_FORCE_OUTPUT;
8584
info->fbops = &armada_fb_ops;
8685
info->fix.smem_start = obj->phys_addr;
8786
info->fix.smem_len = obj->obj.size;

‎drivers/gpu/drm/ast/ast_fb.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,6 @@ static int astfb_create(struct drm_fb_helper *helper,
231231

232232
strcpy(info->fix.id, "astdrmfb");
233233

234-
info->flags = FBINFO_DEFAULT | FBINFO_CAN_FORCE_OUTPUT;
235234
info->fbops = &astfb_ops;
236235

237236
info->apertures->ranges[0].base = pci_resource_start(dev->pdev, 0);

‎drivers/gpu/drm/bochs/bochs_fbdev.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ static int bochsfb_create(struct drm_fb_helper *helper,
118118

119119
strcpy(info->fix.id, "bochsdrmfb");
120120

121-
info->flags = FBINFO_DEFAULT;
122121
info->fbops = &bochsfb_ops;
123122

124123
drm_fb_helper_fill_fix(info, fb->pitches[0], fb->format->depth);

‎drivers/gpu/drm/cirrus/cirrus_fbdev.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ static int cirrusfb_create(struct drm_fb_helper *helper,
215215

216216
strcpy(info->fix.id, "cirrusdrmfb");
217217

218-
info->flags = FBINFO_DEFAULT;
219218
info->fbops = &cirrusfb_ops;
220219

221220
drm_fb_helper_fill_fix(info, fb->pitches[0], fb->format->depth);

‎drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_fbdev.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ static int hibmc_drm_fb_create(struct drm_fb_helper *helper,
131131

132132
strcpy(info->fix.id, "hibmcdrmfb");
133133

134-
info->flags = FBINFO_DEFAULT;
135134
info->fbops = &hibmc_drm_fb_ops;
136135

137136
drm_fb_helper_fill_fix(info, hi_fbdev->fb->fb.pitches[0],

‎drivers/gpu/drm/i915/intel_fbdev.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,6 @@ static int intelfb_create(struct drm_fb_helper *helper,
232232

233233
strcpy(info->fix.id, "inteldrmfb");
234234

235-
info->flags = FBINFO_DEFAULT | FBINFO_CAN_FORCE_OUTPUT;
236235
info->fbops = &intelfb_ops;
237236

238237
/* setup aperture base/size for vesafb takeover */

‎drivers/gpu/drm/mgag200/mgag200_fb.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,6 @@ static int mgag200fb_create(struct drm_fb_helper *helper,
210210

211211
strcpy(info->fix.id, "mgadrmfb");
212212

213-
info->flags = FBINFO_DEFAULT | FBINFO_CAN_FORCE_OUTPUT;
214213
info->fbops = &mgag200fb_ops;
215214

216215
/* setup aperture base/size for vesafb takeover */

‎drivers/gpu/drm/msm/msm_fbdev.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ static int msm_fbdev_create(struct drm_fb_helper *helper,
143143
helper->fb = fb;
144144

145145
fbi->par = helper;
146-
fbi->flags = FBINFO_DEFAULT;
147146
fbi->fbops = &msm_fb_ops;
148147

149148
strcpy(fbi->fix.id, "msm");

‎drivers/gpu/drm/omapdrm/omap_fbdev.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ static int omap_fbdev_create(struct drm_fb_helper *helper,
184184
helper->fb = fb;
185185

186186
fbi->par = helper;
187-
fbi->flags = FBINFO_DEFAULT;
188187
fbi->fbops = &omap_fb_ops;
189188

190189
strcpy(fbi->fix.id, MODULE_NAME);

0 commit comments

Comments
 (0)