drm/<drivers>: Drop fbdev info flags
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 6 Jul 2017 12:57:35 +0000 (14:57 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 26 Jul 2017 11:22:40 +0000 (13:22 +0200)
- 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>
15 files changed:
drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c
drivers/gpu/drm/armada/armada_fbdev.c
drivers/gpu/drm/ast/ast_fb.c
drivers/gpu/drm/bochs/bochs_fbdev.c
drivers/gpu/drm/cirrus/cirrus_fbdev.c
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_fbdev.c
drivers/gpu/drm/i915/intel_fbdev.c
drivers/gpu/drm/mgag200/mgag200_fb.c
drivers/gpu/drm/msm/msm_fbdev.c
drivers/gpu/drm/omapdrm/omap_fbdev.c
drivers/gpu/drm/qxl/qxl_fb.c
drivers/gpu/drm/radeon/radeon_fb.c
drivers/gpu/drm/udl/udl_fb.c
drivers/gpu/drm/virtio/virtgpu_fb.c
drivers/gpu/drm/vmwgfx/vmwgfx_fb.c

index c0d8c6ff6380e8a69de8faf58d28963dde29c8de..1c57fefc364c771450ee9f5463e97c793f665aaa 100644 (file)
@@ -245,7 +245,6 @@ static int amdgpufb_create(struct drm_fb_helper *helper,
 
        drm_fb_helper_fill_fix(info, fb->pitches[0], fb->format->depth);
 
-       info->flags = FBINFO_DEFAULT | FBINFO_CAN_FORCE_OUTPUT;
        info->fbops = &amdgpufb_ops;
 
        tmp = amdgpu_bo_gpu_offset(abo) - adev->mc.vram_start;
index 602dfead8eefa6b6bc70e3290fa9671efc3eada1..5b479b0ed06c3bb5d6be94c67a45bb46cc7ca519 100644 (file)
@@ -81,7 +81,6 @@ static int armada_fb_create(struct drm_fb_helper *fbh,
 
        strlcpy(info->fix.id, "armada-drmfb", sizeof(info->fix.id));
        info->par = fbh;
-       info->flags = FBINFO_DEFAULT | FBINFO_CAN_FORCE_OUTPUT;
        info->fbops = &armada_fb_ops;
        info->fix.smem_start = obj->phys_addr;
        info->fix.smem_len = obj->obj.size;
index 4ad4acd0ccab8528d52be211f321f7f589443dc1..53ca6d0992341572cd6a351f845d08cffa73d8dd 100644 (file)
@@ -231,7 +231,6 @@ static int astfb_create(struct drm_fb_helper *helper,
 
        strcpy(info->fix.id, "astdrmfb");
 
-       info->flags = FBINFO_DEFAULT | FBINFO_CAN_FORCE_OUTPUT;
        info->fbops = &astfb_ops;
 
        info->apertures->ranges[0].base = pci_resource_start(dev->pdev, 0);
index 49d5a2b7d630b01e82cce7873b04608048178614..14eb8d0d5a00a5f679219e7b101633678421af1b 100644 (file)
@@ -118,7 +118,6 @@ static int bochsfb_create(struct drm_fb_helper *helper,
 
        strcpy(info->fix.id, "bochsdrmfb");
 
-       info->flags = FBINFO_DEFAULT;
        info->fbops = &bochsfb_ops;
 
        drm_fb_helper_fill_fix(info, fb->pitches[0], fb->format->depth);
index 7fa58eeadc9d05d743de30d6033985224b245ea3..c69586163d92c25f72de5f38ccfed259cb0c18af 100644 (file)
@@ -215,7 +215,6 @@ static int cirrusfb_create(struct drm_fb_helper *helper,
 
        strcpy(info->fix.id, "cirrusdrmfb");
 
-       info->flags = FBINFO_DEFAULT;
        info->fbops = &cirrusfb_ops;
 
        drm_fb_helper_fill_fix(info, fb->pitches[0], fb->format->depth);
index f5ac80daeef2de2d1f5eeac2da80c9855056d630..9740eed9231aa5af8084ae2e16e0b2fc2108706f 100644 (file)
@@ -131,7 +131,6 @@ static int hibmc_drm_fb_create(struct drm_fb_helper *helper,
 
        strcpy(info->fix.id, "hibmcdrmfb");
 
-       info->flags = FBINFO_DEFAULT;
        info->fbops = &hibmc_drm_fb_ops;
 
        drm_fb_helper_fill_fix(info, hi_fbdev->fb->fb.pitches[0],
index 460ca0b3fb8843081c3669700fb393edff4cc4e3..ec6198040381e4988c4959931265bb25812da456 100644 (file)
@@ -232,7 +232,6 @@ static int intelfb_create(struct drm_fb_helper *helper,
 
        strcpy(info->fix.id, "inteldrmfb");
 
-       info->flags = FBINFO_DEFAULT | FBINFO_CAN_FORCE_OUTPUT;
        info->fbops = &intelfb_ops;
 
        /* setup aperture base/size for vesafb takeover */
index 5d3b1fac906f44dc4e216dd10abf08c622f4ff6a..e94d78a32fe0b3777a09ca43849ef5330d7c8658 100644 (file)
@@ -210,7 +210,6 @@ static int mgag200fb_create(struct drm_fb_helper *helper,
 
        strcpy(info->fix.id, "mgadrmfb");
 
-       info->flags = FBINFO_DEFAULT | FBINFO_CAN_FORCE_OUTPUT;
        info->fbops = &mgag200fb_ops;
 
        /* setup aperture base/size for vesafb takeover */
index 5ecf4ff9a05982882691f0f76044c38d21790174..9c00fedfc741614632d25fa29235d367f3763408 100644 (file)
@@ -143,7 +143,6 @@ static int msm_fbdev_create(struct drm_fb_helper *helper,
        helper->fb = fb;
 
        fbi->par = helper;
-       fbi->flags = FBINFO_DEFAULT;
        fbi->fbops = &msm_fb_ops;
 
        strcpy(fbi->fix.id, "msm");
index daf81a0a2899ccc9c616ad0eaad5afef1e661de4..9273118040b740e01f08b127c40aa5cfb7edc1d9 100644 (file)
@@ -184,7 +184,6 @@ static int omap_fbdev_create(struct drm_fb_helper *helper,
        helper->fb = fb;
 
        fbi->par = helper;
-       fbi->flags = FBINFO_DEFAULT;
        fbi->fbops = &omap_fb_ops;
 
        strcpy(fbi->fix.id, MODULE_NAME);
index 69e7359b562aeb53367c5fabcc1a5b9eba6530a2..844c4a31ca1305b131e13a158904b0f60e551178 100644 (file)
@@ -275,7 +275,6 @@ static int qxlfb_create(struct qxl_fbdev *qfbdev,
 
        drm_fb_helper_fill_fix(info, fb->pitches[0], fb->format->depth);
 
-       info->flags = FBINFO_DEFAULT;
        info->fbops = &qxlfb_ops;
 
        /*
index 356ad90a52383a755ffa168c2b7209d449232a1e..e141fcd5e8e136f481605dbe1bcbcb518f5c325e 100644 (file)
@@ -264,7 +264,6 @@ static int radeonfb_create(struct drm_fb_helper *helper,
 
        drm_fb_helper_fill_fix(info, fb->pitches[0], fb->format->depth);
 
-       info->flags = FBINFO_DEFAULT | FBINFO_CAN_FORCE_OUTPUT;
        info->fbops = &radeonfb_ops;
 
        tmp = radeon_bo_gpu_offset(rbo) - rdev->mc.vram_start;
index 4a650036256444ed84d1d2ef4e349236d5eb5f26..a5c54dc60defca97b4775adeac3b9987274968da 100644 (file)
@@ -393,7 +393,6 @@ static int udlfb_create(struct drm_fb_helper *helper,
        info->fix.smem_len = size;
        info->fix.smem_start = (unsigned long)ufbdev->ufb.obj->vmapping;
 
-       info->flags = FBINFO_DEFAULT | FBINFO_CAN_FORCE_OUTPUT;
        info->fbops = &udlfb_ops;
        drm_fb_helper_fill_fix(info, fb->pitches[0], fb->format->depth);
        drm_fb_helper_fill_var(info, &ufbdev->helper, sizes->fb_width, sizes->fb_height);
index 33df067b11c1bb19564fc6dad0fe7caca928bc90..046e28b69d99c84027916ed4cd084487823d3d94 100644 (file)
@@ -273,7 +273,6 @@ static int virtio_gpufb_create(struct drm_fb_helper *helper,
        vfbdev->helper.fb = fb;
 
        strcpy(info->fix.id, "virtiodrmfb");
-       info->flags = FBINFO_DEFAULT;
        info->fbops = &virtio_gpufb_ops;
        info->pixmap.flags = FB_PIXMAP_SYSTEM;
 
index 6f4cb4678cbcc4d917f7ec1739f93ba3e4ae21cd..d23a18aae476be3ab181a7a7bd3b8b52e3487efb 100644 (file)
@@ -779,7 +779,6 @@ int vmw_fb_init(struct vmw_private *vmw_priv)
        info->screen_base = (char __iomem *)par->vmalloc;
        info->screen_size = fb_size;
 
-       info->flags = FBINFO_DEFAULT;
        info->fbops = &vmw_fb_ops;
 
        /* 24 depth per default */