fbdev: Remove FBINFO_DEFAULT from framebuffer_alloc()'ed structs
authorThomas Zimmermann <tzimmermann@suse.de>
Sat, 15 Jul 2023 18:51:47 +0000 (20:51 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 24 Jul 2023 14:50:38 +0000 (16:50 +0200)
The flag FBINFO_DEFAULT is 0 and has no effect, as struct fbinfo.flags
has been allocated to zero by framebuffer_alloc(). So do not set it.

Flags should signal differences from the default values. After cleaning
up all occurrences of FBINFO_DEFAULT, the token will be removed.

v4:
* clarify commit message (Geert, Dan)
v2:
* fix commit message (Miguel)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Helge Deller <deller@gmx.de>
Cc: Nicolas Ferre <nicolas.ferre@microchip.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Ferenc Bakonyi <fero@drama.obuda.kando.hu>
Cc: "K. Y. Srinivasan" <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Cc: Wei Liu <wei.liu@kernel.org>
Cc: Dexuan Cui <decui@microsoft.com>
Cc: Antonino Daplas <adaplas@gmail.com>
Cc: Maik Broemme <mbroemme@libmpq.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
Cc: Kristoffer Ericson <kristoffer.ericson@gmail.com>
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: Steve Glendinning <steve.glendinning@shawell.net>
Cc: Bernie Thompson <bernie@plugable.com>
Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20230715185343.7193-6-tzimmermann@suse.de
64 files changed:
drivers/video/fbdev/amifb.c
drivers/video/fbdev/asiliantfb.c
drivers/video/fbdev/atmel_lcdfb.c
drivers/video/fbdev/aty/atyfb_base.c
drivers/video/fbdev/aty/radeon_base.c
drivers/video/fbdev/bw2.c
drivers/video/fbdev/carminefb.c
drivers/video/fbdev/cg14.c
drivers/video/fbdev/cg3.c
drivers/video/fbdev/cg6.c
drivers/video/fbdev/chipsfb.c
drivers/video/fbdev/cirrusfb.c
drivers/video/fbdev/clps711x-fb.c
drivers/video/fbdev/cobalt_lcdfb.c
drivers/video/fbdev/ep93xx-fb.c
drivers/video/fbdev/ffb.c
drivers/video/fbdev/fm2fb.c
drivers/video/fbdev/gbefb.c
drivers/video/fbdev/geode/gx1fb_core.c
drivers/video/fbdev/geode/gxfb_core.c
drivers/video/fbdev/geode/lxfb_core.c
drivers/video/fbdev/grvga.c
drivers/video/fbdev/hgafb.c
drivers/video/fbdev/hitfb.c
drivers/video/fbdev/hyperv_fb.c
drivers/video/fbdev/i740fb.c
drivers/video/fbdev/i810/i810_main.c
drivers/video/fbdev/imsttfb.c
drivers/video/fbdev/intelfb/intelfbdrv.c
drivers/video/fbdev/kyro/fbdev.c
drivers/video/fbdev/leo.c
drivers/video/fbdev/mb862xx/mb862xxfbdrv.c
drivers/video/fbdev/mmp/fb/mmpfb.c
drivers/video/fbdev/neofb.c
drivers/video/fbdev/nvidia/nvidia.c
drivers/video/fbdev/offb.c
drivers/video/fbdev/p9100.c
drivers/video/fbdev/platinumfb.c
drivers/video/fbdev/pm2fb.c
drivers/video/fbdev/pm3fb.c
drivers/video/fbdev/pmag-aa-fb.c
drivers/video/fbdev/pmag-ba-fb.c
drivers/video/fbdev/pmagb-b-fb.c
drivers/video/fbdev/ps3fb.c
drivers/video/fbdev/pvr2fb.c
drivers/video/fbdev/pxa168fb.c
drivers/video/fbdev/q40fb.c
drivers/video/fbdev/riva/fbdev.c
drivers/video/fbdev/s1d13xxxfb.c
drivers/video/fbdev/savage/savagefb_driver.c
drivers/video/fbdev/simplefb.c
drivers/video/fbdev/sis/sis_main.c
drivers/video/fbdev/skeletonfb.c
drivers/video/fbdev/smscufx.c
drivers/video/fbdev/sstfb.c
drivers/video/fbdev/sunxvr1000.c
drivers/video/fbdev/sunxvr2500.c
drivers/video/fbdev/sunxvr500.c
drivers/video/fbdev/tcx.c
drivers/video/fbdev/tdfxfb.c
drivers/video/fbdev/tgafb.c
drivers/video/fbdev/tridentfb.c
drivers/video/fbdev/udlfb.c
drivers/video/fbdev/via/viafbdev.c

index d88265dbebf4cb199934bd88878130e6a087338e..cea782283b9c1fedd8a79feb3eedd6c03323ff6f 100644 (file)
@@ -2427,7 +2427,7 @@ static int amifb_set_par(struct fb_info *info)
                info->fix.ywrapstep = 1;
                info->fix.xpanstep = 0;
                info->fix.ypanstep = 0;
-               info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YWRAP |
+               info->flags = FBINFO_HWACCEL_YWRAP |
                        FBINFO_READS_FAST; /* override SCROLL_REDRAW */
        } else {
                info->fix.ywrapstep = 0;
@@ -2436,7 +2436,7 @@ static int amifb_set_par(struct fb_info *info)
                else
                        info->fix.xpanstep = 16 << maxfmode;
                info->fix.ypanstep = 1;
-               info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN;
+               info->flags = FBINFO_HWACCEL_YPAN;
        }
        return 0;
 }
@@ -3660,7 +3660,6 @@ default_chipset:
        }
 
        info->fbops = &amifb_ops;
-       info->flags = FBINFO_DEFAULT;
        info->device = &pdev->dev;
 
        if (!fb_find_mode(&info->var, info, mode_option, ami_modedb,
index 8383468f5577549cf15e7eae816ce4c7a227c50e..29c232809d5ea3828edcb5fec4a13506161ce251 100644 (file)
@@ -516,7 +516,6 @@ static int init_asiliant(struct fb_info *p, unsigned long addr)
        p->fix.smem_start       = addr;
        p->var                  = asiliantfb_var;
        p->fbops                = &asiliantfb_ops;
-       p->flags                = FBINFO_DEFAULT;
 
        err = fb_alloc_cmap(&p->cmap, 256, 0);
        if (err) {
index 987c5f5f02414be9f9c7e24916e6d7ea27bd4f8a..3021660b3e8793accdcd220e0da133a271bf7dd9 100644 (file)
@@ -1059,7 +1059,7 @@ static int __init atmel_lcdfb_probe(struct platform_device *pdev)
        if (IS_ERR(sinfo->reg_lcd))
                sinfo->reg_lcd = NULL;
 
-       info->flags = FBINFO_DEFAULT | FBINFO_PARTIAL_PAN_OK |
+       info->flags = FBINFO_PARTIAL_PAN_OK |
                      FBINFO_HWACCEL_YPAN;
        info->pseudo_palette = sinfo->pseudo_palette;
        info->fbops = &atmel_lcdfb_ops;
index e1602e3fbc66bef3be6ac579d2063d3caf2a7b06..5c87817a4f4ce62afe173a2d0859b9c84a226858 100644 (file)
@@ -2637,8 +2637,7 @@ static int aty_init(struct fb_info *info)
 
        info->fbops = &atyfb_ops;
        info->pseudo_palette = par->pseudo_palette;
-       info->flags = FBINFO_DEFAULT           |
-                     FBINFO_HWACCEL_IMAGEBLIT |
+       info->flags = FBINFO_HWACCEL_IMAGEBLIT |
                      FBINFO_HWACCEL_FILLRECT  |
                      FBINFO_HWACCEL_COPYAREA  |
                      FBINFO_HWACCEL_YPAN      |
index 8f2a527c26ebf5420d71a4b5a1720189a7233e6f..93fd1773402c5bcde43da16c56c58813563f4cd9 100644 (file)
@@ -1972,8 +1972,7 @@ static int radeon_set_fbinfo(struct radeonfb_info *rinfo)
 
        info->par = rinfo;
        info->pseudo_palette = rinfo->pseudo_palette;
-       info->flags = FBINFO_DEFAULT
-                   | FBINFO_HWACCEL_COPYAREA
+       info->flags = FBINFO_HWACCEL_COPYAREA
                    | FBINFO_HWACCEL_FILLRECT
                    | FBINFO_HWACCEL_XPAN
                    | FBINFO_HWACCEL_YPAN;
index 025d663dc6fdcae85bc10e8e1813cd5305ca97e5..6da22044cbc547bd02fa37bfc211bbb3c5bfaee1 100644 (file)
@@ -314,7 +314,6 @@ static int bw2_probe(struct platform_device *op)
 
        info->fix.smem_len = PAGE_ALIGN(linebytes * info->var.yres);
 
-       info->flags = FBINFO_DEFAULT;
        info->fbops = &bw2_ops;
 
        info->screen_base = of_ioremap(&op->resource[0], 0,
index 4ae21dbdb8caac2638fc2e2c68ce4b8651dc171e..33a03f4ae0257c7c6fb6c1e8ff8beeabc8905711 100644 (file)
@@ -561,7 +561,6 @@ static int alloc_carmine_fb(void __iomem *regs, void __iomem *smem_base,
 
        info->fix = carminefb_fix;
        info->pseudo_palette = par->pseudo_palette;
-       info->flags = FBINFO_DEFAULT;
 
        ret = fb_alloc_cmap(&info->cmap, 256, 1);
        if (ret < 0)
index 832a82f45c8096468babc2e0e29d24a081c7f025..b2ecd9ff2a61507695a6628994a85ed1edb40b1a 100644 (file)
@@ -533,7 +533,7 @@ static int cg14_probe(struct platform_device *op)
        par->mode = MDI_8_PIX;
        par->ramsize = (is_8mb ? 0x800000 : 0x400000);
 
-       info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN;
+       info->flags = FBINFO_HWACCEL_YPAN;
        info->fbops = &cg14_ops;
 
        __cg14_reset(par);
index 6335cd364c74c8c523d2f2066528309a0e5e12fa..c0e6179c66a14276610f2ba28ab83da5023113cc 100644 (file)
@@ -384,7 +384,6 @@ static int cg3_probe(struct platform_device *op)
        if (!par->regs)
                goto out_release_fb;
 
-       info->flags = FBINFO_DEFAULT;
        info->fbops = &cg3_ops;
        info->screen_base = of_ioremap(&op->resource[0], CG3_RAM_OFFSET,
                                       info->fix.smem_len, "cg3 ram");
index 6884572efea16fafa60adf4a377758bdd7f1eaf3..e6cb55be7d8b2de5aa4ce67c3ff6714474f0e00b 100644 (file)
@@ -782,7 +782,7 @@ static int cg6_probe(struct platform_device *op)
        par->fhc = of_ioremap(&op->resource[0], CG6_FHC_OFFSET,
                                sizeof(u32), "cgsix fhc");
 
-       info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_IMAGEBLIT |
+       info->flags = FBINFO_HWACCEL_IMAGEBLIT |
                        FBINFO_HWACCEL_COPYAREA | FBINFO_HWACCEL_FILLRECT |
                        FBINFO_READS_FAST;
        info->fbops = &cg6_ops;
index 2a27ba94f652b36e97b6765049cb6db3e4ab5fac..d5f43454ccd711dfa607c35193f21fba57d38fd4 100644 (file)
@@ -340,7 +340,6 @@ static void init_chips(struct fb_info *p, unsigned long addr)
        p->var = chipsfb_var;
 
        p->fbops = &chipsfb_ops;
-       p->flags = FBINFO_DEFAULT;
 
        fb_alloc_cmap(&p->cmap, 256, 0);
 
index ba45e2147c52af6ed505ac0c70af662ce374ae06..9d369b6a4dcc7e7f0ba2799fb23e29a2e9414093 100644 (file)
@@ -1978,8 +1978,7 @@ static int cirrusfb_set_fbinfo(struct fb_info *info)
        struct fb_var_screeninfo *var = &info->var;
 
        info->pseudo_palette = cinfo->pseudo_palette;
-       info->flags = FBINFO_DEFAULT
-                   | FBINFO_HWACCEL_XPAN
+       info->flags = FBINFO_HWACCEL_XPAN
                    | FBINFO_HWACCEL_YPAN
                    | FBINFO_HWACCEL_FILLRECT
                    | FBINFO_HWACCEL_IMAGEBLIT
index ac0d058152a3c03eafe3fd4b59593ad443611804..e956c90efcdcc98cfbf8ea82317618ed78094117 100644 (file)
@@ -310,7 +310,6 @@ static int clps711x_fb_probe(struct platform_device *pdev)
        }
 
        info->fbops = &clps711x_fb_ops;
-       info->flags = FBINFO_DEFAULT;
        info->var.activate = FB_ACTIVATE_FORCE | FB_ACTIVATE_NOW;
        info->var.height = -1;
        info->var.width = -1;
index 3d59a01ec677b6a2acc5c5ca70aa52409cf6bb7b..b94e7c97264cbf73d1f4831bfd2ac8a4ed23c092 100644 (file)
@@ -313,7 +313,6 @@ static int cobalt_lcdfb_probe(struct platform_device *dev)
        info->fix.smem_len = info->screen_size;
        info->pseudo_palette = NULL;
        info->par = NULL;
-       info->flags = FBINFO_DEFAULT;
 
        retval = register_framebuffer(info);
        if (retval < 0) {
index 37309f9dbe828eede45875fc3e2e49a189701bea..037df9cb9675f770da7fb8395a9d3dff080e1c51 100644 (file)
@@ -515,7 +515,6 @@ static int ep93xxfb_probe(struct platform_device *pdev)
        info->fix.accel         = FB_ACCEL_NONE;
        info->var.activate      = FB_ACTIVATE_NOW;
        info->var.vmode         = FB_VMODE_NONINTERLACED;
-       info->flags             = FBINFO_DEFAULT;
        info->node              = -1;
        info->state             = FBINFO_STATE_RUNNING;
        info->pseudo_palette    = &fbi->pseudo_palette;
index c6d3111dcbb073da7319b12b1bddb957b7a98869..e4fe13059ad59e54e8f53b373c6cadcb48b629b3 100644 (file)
@@ -929,8 +929,7 @@ static int ffb_probe(struct platform_device *op)
        /* Don't mention copyarea, so SCROLL_REDRAW is always
         * used.  It is the fastest on this chip.
         */
-       info->flags = (FBINFO_DEFAULT |
-                      /* FBINFO_HWACCEL_COPYAREA | */
+       info->flags = (/* FBINFO_HWACCEL_COPYAREA | */
                       FBINFO_HWACCEL_FILLRECT |
                       FBINFO_HWACCEL_IMAGEBLIT);
 
index 942e382cf1cf9fd90120873b8812a252cc863dee..4dcb9dd79bf863d1b0cbf6d8e7498cae73093d49 100644 (file)
@@ -280,7 +280,6 @@ static int fm2fb_probe(struct zorro_dev *z, const struct zorro_device_id *id)
        info->pseudo_palette = info->par;
        info->par = NULL;
        info->fix = fb_fix;
-       info->flags = FBINFO_DEFAULT;
 
        if (register_framebuffer(info) < 0) {
                fb_dealloc_cmap(&info->cmap);
index 3f141e21b7e00e3a53aa62a047f861ba35aa72c6..4fccdccbc364aa71d42d1571161c26e999b5901e 100644 (file)
@@ -1194,7 +1194,6 @@ static int gbefb_probe(struct platform_device *p_dev)
 
        info->fbops = &gbefb_ops;
        info->pseudo_palette = pseudo_palette;
-       info->flags = FBINFO_DEFAULT;
        info->screen_base = gbe_mem;
        fb_alloc_cmap(&info->cmap, 256, 0);
 
index 9c942001ac10359496cce6168ef2af526c88675a..ddec35e3bbeb9a21ebd8a5ffaa6878457ebe2aa4 100644 (file)
@@ -294,7 +294,6 @@ static struct fb_info *gx1fb_init_fbinfo(struct device *dev)
        info->var.vmode = FB_VMODE_NONINTERLACED;
 
        info->fbops             = &gx1fb_ops;
-       info->flags             = FBINFO_DEFAULT;
        info->node              = -1;
 
        info->pseudo_palette    = (void *)par + sizeof(struct geodefb_par);
index 8e05e76de0759d47461864dfd55ee04564b7f40d..4fb13790c5281556ed0bc91ca1f408997c29a9f6 100644 (file)
@@ -308,7 +308,6 @@ static struct fb_info *gxfb_init_fbinfo(struct device *dev)
        info->var.vmode = FB_VMODE_NONINTERLACED;
 
        info->fbops             = &gxfb_ops;
-       info->flags             = FBINFO_DEFAULT;
        info->node              = -1;
 
        info->pseudo_palette    = (void *)par + sizeof(struct gxfb_par);
index 556d8b1a9e06aefd6ec34796d9a60963c733f956..b70b286f43e49e7c5aec41d07f695478232ab135 100644 (file)
@@ -432,7 +432,6 @@ static struct fb_info *lxfb_init_fbinfo(struct device *dev)
        info->var.vmode = FB_VMODE_NONINTERLACED;
 
        info->fbops             = &lxfb_ops;
-       info->flags             = FBINFO_DEFAULT;
        info->node              = -1;
 
        info->pseudo_palette    = (void *)par + sizeof(struct lxfb_par);
index 9aa15be29ea9d5920ba4d3f0d6e385eae2146f99..894ecfa451249f4576b11d6ac8a1bae9763f4356 100644 (file)
@@ -377,7 +377,7 @@ static int grvga_probe(struct platform_device *dev)
        info->fbops = &grvga_ops;
        info->fix = grvga_fix;
        info->pseudo_palette = par->color_palette;
-       info->flags = FBINFO_DEFAULT | FBINFO_PARTIAL_PAN_OK | FBINFO_HWACCEL_YPAN;
+       info->flags = FBINFO_PARTIAL_PAN_OK | FBINFO_HWACCEL_YPAN;
        info->fix.smem_len = grvga_mem_size;
 
        if (!devm_request_mem_region(&dev->dev, dev->resource[0].start,
index 0af58018441d30aa0dc893be291848c6b1b07019..6a64e6d7255eb6379175d6da292a5f52644cdf38 100644 (file)
@@ -573,7 +573,7 @@ static int hgafb_probe(struct platform_device *pdev)
        hga_fix.smem_start = (unsigned long)hga_vram;
        hga_fix.smem_len = hga_vram_len;
 
-       info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN;
+       info->flags = FBINFO_HWACCEL_YPAN;
        info->var = hga_default_var;
        info->fix = hga_fix;
        info->monspecs.hfmin = 0;
index 9fd196637d143894823e1317e3602c614a41bddb..17715eaf06732751b5236ef9af9571474c78311e 100644 (file)
@@ -405,7 +405,7 @@ static int hitfb_probe(struct platform_device *dev)
        info->var = hitfb_var;
        info->fix = hitfb_fix;
        info->pseudo_palette = info->par;
-       info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN |
+       info->flags = FBINFO_HWACCEL_YPAN |
                FBINFO_HWACCEL_FILLRECT | FBINFO_HWACCEL_COPYAREA;
 
        info->screen_base = (char __iomem *)(uintptr_t)hitfb_fix.smem_start;
index b331452aab4fbda3975bcf91f829d6015a28f01e..b9965cbdd7642795cd41474cc0c75a661775ced5 100644 (file)
@@ -1159,8 +1159,6 @@ static int hvfb_probe(struct hv_device *hdev,
        }
 
        /* Set up fb_info */
-       info->flags = FBINFO_DEFAULT;
-
        info->var.xres_virtual = info->var.xres = screen_width;
        info->var.yres_virtual = info->var.yres = screen_height;
        info->var.bits_per_pixel = screen_depth;
index 3860b137b86a929089ee22586e2d1a589befc23e..3f5becfe9fd519c24a191e5cc20a6af93635c98f 100644 (file)
@@ -1077,7 +1077,7 @@ static int i740fb_probe(struct pci_dev *dev, const struct pci_device_id *ent)
        info->fix.mmio_len = pci_resource_len(dev, 1);
        info->fix.smem_start = pci_resource_start(dev, 0);
        info->fix.smem_len = info->screen_size;
-       info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN;
+       info->flags = FBINFO_HWACCEL_YPAN;
 
        if (i740fb_setup_ddc_bus(info) == 0) {
                par->ddc_registered = true;
index 85abb65f07d7ddd5a49be5519aa58c33ef47e7cd..f5511bb4fadcabe5c6b300fcae10373d0fdf7441 100644 (file)
@@ -1442,13 +1442,13 @@ static int i810fb_set_par(struct fb_info *info)
        encode_fix(&info->fix, info);
 
        if (info->var.accel_flags && !(par->dev_flags & LOCKUP)) {
-               info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN |
+               info->flags = FBINFO_HWACCEL_YPAN |
                FBINFO_HWACCEL_COPYAREA | FBINFO_HWACCEL_FILLRECT |
                FBINFO_HWACCEL_IMAGEBLIT;
                info->pixmap.scan_align = 2;
        } else {
                info->pixmap.scan_align = 1;
-               info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN;
+               info->flags = FBINFO_HWACCEL_YPAN;
        }
        return 0;
 }
index ee7d01ad14068687b968a42f1558ed730664e47b..f4c8677488fb883405dc998c874dff9fe53933cb 100644 (file)
@@ -1447,8 +1447,7 @@ static int init_imstt(struct fb_info *info)
        info->var.pixclock = 1000000 / getclkMHz(par);
 
        info->fbops = &imsttfb_ops;
-       info->flags = FBINFO_DEFAULT |
-                      FBINFO_HWACCEL_COPYAREA |
+       info->flags = FBINFO_HWACCEL_COPYAREA |
                      FBINFO_HWACCEL_FILLRECT |
                      FBINFO_HWACCEL_YPAN;
 
index a81095b2b1ea592e6eaabc03f0f880d459e9e1fd..85a6341b8ac0aeefcaf9f616f6029067044db7d0 100644 (file)
@@ -1372,11 +1372,11 @@ static int intelfb_set_par(struct fb_info *info)
        intelfb_blank(FB_BLANK_UNBLANK, info);
 
        if (ACCEL(dinfo, info)) {
-               info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN |
+               info->flags = FBINFO_HWACCEL_YPAN |
                FBINFO_HWACCEL_COPYAREA | FBINFO_HWACCEL_FILLRECT |
                FBINFO_HWACCEL_IMAGEBLIT;
        } else
-               info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN;
+               info->flags = FBINFO_HWACCEL_YPAN;
 
        kfree(hw);
        return 0;
index 3f277bdb3a321618eef99fee24785524d3f5764d..1109326ca3c4995fd9ffaecc411fb2beed02d9b3 100644 (file)
@@ -716,7 +716,6 @@ static int kyrofb_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
        info->fbops             = &kyrofb_ops;
        info->fix               = kyro_fix;
        info->pseudo_palette    = currentpar->palette;
-       info->flags             = FBINFO_DEFAULT;
 
        SetCoreClockPLL(deviceInfo.pSTGReg, pdev);
 
index 3ffc0a725f89b0f195c836dab5bfec5a6d3326d3..a1a40ea3b22a5ded42fa00e80d7610bd3fcd2c89 100644 (file)
@@ -600,7 +600,6 @@ static int leo_probe(struct platform_device *op)
            !info->screen_base)
                goto out_unmap_regs;
 
-       info->flags = FBINFO_DEFAULT;
        info->fbops = &leo_ops;
        info->pseudo_palette = par->clut_data;
 
index 119c2a582ecbd1ac87fa21b855b60e5a03d3d0e9..daaa5880601ff3a39e09754364f81ce2cc12a556 100644 (file)
@@ -501,7 +501,7 @@ static int mb862xxfb_init_fbinfo(struct fb_info *fbi)
        fbi->var.accel_flags = 0;
        fbi->var.vmode = FB_VMODE_NONINTERLACED;
        fbi->var.activate = FB_ACTIVATE_NOW;
-       fbi->flags = FBINFO_DEFAULT |
+       fbi->flags =
 #ifdef __BIG_ENDIAN
                     FBINFO_FOREIGN_ENDIAN |
 #endif
index 39ebbe026ddf5cc34e1bbf31f5b67d66b971fa85..ac9db01f29f234d539cf7c12bc9f666db137a915 100644 (file)
@@ -502,7 +502,7 @@ static int fb_info_setup(struct fb_info *info,
 {
        int ret = 0;
        /* Initialise static fb parameters.*/
-       info->flags = FBINFO_DEFAULT | FBINFO_PARTIAL_PAN_OK |
+       info->flags = FBINFO_PARTIAL_PAN_OK |
                FBINFO_HWACCEL_XPAN | FBINFO_HWACCEL_YPAN;
        info->node = -1;
        strcpy(info->fix.id, fbi->name);
index 39d8cdef5c97ac99a2254fda7b5fbba719a80a4b..d2f622b4c372a368ec0ee3e086ec9fb393c820ec 100644 (file)
@@ -1944,7 +1944,7 @@ static struct fb_info *neo_alloc_fb_info(struct pci_dev *dev,
 
        par->internal_display = internal;
        par->external_display = external;
-       info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN;
+       info->flags = FBINFO_HWACCEL_YPAN;
 
        switch (info->fix.accel) {
        case FB_ACCEL_NEOMAGIC_NM2070:
index 039e886346fa6eb7bb911029aec050a2cd195c0a..907c22408652bd2bf4ce52d96a30bdfd431b1f81 100644 (file)
@@ -1111,8 +1111,8 @@ static int nvidia_set_fbinfo(struct fb_info *info)
        int lpitch;
 
        NVTRACE_ENTER();
-       info->flags = FBINFO_DEFAULT
-           | FBINFO_HWACCEL_IMAGEBLIT
+       info->flags =
+             FBINFO_HWACCEL_IMAGEBLIT
            | FBINFO_HWACCEL_FILLRECT
            | FBINFO_HWACCEL_COPYAREA
            | FBINFO_HWACCEL_YPAN;
index 0065a77b6dbc8f0a6f5563c3b3e963d0733189eb..17f8238262beb1c0bf01732055fb08adcf19a532 100644 (file)
@@ -514,7 +514,7 @@ static void offb_init_fb(struct platform_device *parent, const char *name,
        info->fbops = &offb_ops;
        info->screen_base = ioremap(address, fix->smem_len);
        info->pseudo_palette = par->pseudo_palette;
-       info->flags = FBINFO_DEFAULT | foreign_endian;
+       info->flags = foreign_endian;
 
        fb_alloc_cmap(&info->cmap, 256, 0);
 
index 0876962c52ebc5f54271c498c2867d4be024b02a..41d124862a007b967b3886fdde0c192d8493aced 100644 (file)
@@ -283,7 +283,6 @@ static int p9100_probe(struct platform_device *op)
        if (!par->regs)
                goto out_release_fb;
 
-       info->flags = FBINFO_DEFAULT;
        info->fbops = &p9100_ops;
        info->screen_base = of_ioremap(&op->resource[2], 0,
                                       info->fix.smem_len, "p9100 ram");
index f8283fcd5edb781cb66587b181d3737d31695a77..b5af45e80fe1db99de268d204e00ffa42e6c2276 100644 (file)
@@ -317,7 +317,6 @@ static void platinum_init_info(struct fb_info *info,
        /* Fill fb_info */
        info->fbops = &platinumfb_ops;
        info->pseudo_palette = pinfo->pseudo_palette;
-        info->flags = FBINFO_DEFAULT;
        info->screen_base = pinfo->frame_buffer + 0x20;
 
        fb_alloc_cmap(&info->cmap, 256, 0);
index 47d212944f3079c5b6189fda3d8a080bbf2fd591..5a79a12efd8e30b578722525982659c02c6d3fe6 100644 (file)
@@ -1657,8 +1657,7 @@ static int pm2fb_probe(struct pci_dev *pdev, const struct pci_device_id *id)
        info->fbops             = &pm2fb_ops;
        info->fix               = pm2fb_fix;
        info->pseudo_palette    = default_par->palette;
-       info->flags             = FBINFO_DEFAULT |
-                                 FBINFO_HWACCEL_YPAN |
+       info->flags             = FBINFO_HWACCEL_YPAN |
                                  FBINFO_HWACCEL_COPYAREA |
                                  FBINFO_HWACCEL_IMAGEBLIT |
                                  FBINFO_HWACCEL_FILLRECT;
index b46a471df9ae800869e286a872ee43dda1f6dd5d..16577d0e41b1aa6ff7e3a0b18d493f2ccc1fcad4 100644 (file)
@@ -1390,8 +1390,7 @@ static int pm3fb_probe(struct pci_dev *dev, const struct pci_device_id *ent)
 
        info->fix = pm3fb_fix;
        info->pseudo_palette = par->palette;
-       info->flags = FBINFO_DEFAULT |
-                       FBINFO_HWACCEL_XPAN |
+       info->flags = FBINFO_HWACCEL_XPAN |
                        FBINFO_HWACCEL_YPAN |
                        FBINFO_HWACCEL_COPYAREA |
                        FBINFO_HWACCEL_IMAGEBLIT |
index 62c8de99af0b24dba9b0a64c1cf4542764e5e5f8..7ee20db9ceb89abe75055afffd6285b5dc577035 100644 (file)
@@ -174,7 +174,6 @@ static int pmagaafb_probe(struct device *dev)
        info->fbops = &aafb_ops;
        info->fix = aafb_fix;
        info->var = aafb_defined;
-       info->flags = FBINFO_DEFAULT;
 
        /* Request the I/O MEM resource. */
        start = tdev->resource.start;
index 1296f9b370c2e50c29fee335b3d5a00758ae311a..20a1815279f7c090908c7a0618cad277924f2333 100644 (file)
@@ -166,7 +166,6 @@ static int pmagbafb_probe(struct device *dev)
        info->fbops = &pmagbafb_ops;
        info->fix = pmagbafb_fix;
        info->var = pmagbafb_defined;
-       info->flags = FBINFO_DEFAULT;
 
        /* Request the I/O MEM resource.  */
        start = tdev->resource.start;
index 9dccd51ee65a4e3f8fa69305ef9ceac93e239d10..4ab4d6c7a975f9d7e5b4c516d7e81824c74ef835 100644 (file)
@@ -273,7 +273,6 @@ static int pmagbbfb_probe(struct device *dev)
        info->fbops = &pmagbbfb_ops;
        info->fix = pmagbbfb_fix;
        info->var = pmagbbfb_defined;
-       info->flags = FBINFO_DEFAULT;
 
        /* Request the I/O MEM resource.  */
        start = tdev->resource.start;
index d4abcf8aff75fb9c7690981bcdab6925dc382890..5aedc30c5f7e1aaf8f0b63f24c20804bd193be35 100644 (file)
@@ -1145,7 +1145,7 @@ static int ps3fb_probe(struct ps3_system_bus_device *dev)
        info->fix.smem_len = ps3fb_videomemory.size - GPU_FB_START;
 
        info->pseudo_palette = par->pseudo_palette;
-       info->flags = FBINFO_DEFAULT | FBINFO_READS_FAST |
+       info->flags = FBINFO_READS_FAST |
                      FBINFO_HWACCEL_XPAN | FBINFO_HWACCEL_YPAN;
 
        retval = fb_alloc_cmap(&info->cmap, 256, 0);
index c692cd597ce32b94e8a9d18c1006ed70bd8934bb..6307364e4a49c5b19ee561ddc306b2d1b8370cb9 100644 (file)
@@ -810,7 +810,7 @@ static int __maybe_unused pvr2fb_common_init(void)
        fb_info->fix            = pvr2_fix;
        fb_info->par            = currentpar;
        fb_info->pseudo_palette = currentpar->palette;
-       fb_info->flags          = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN;
+       fb_info->flags          = FBINFO_HWACCEL_YPAN;
 
        if (video_output == VO_VGA)
                defmode = DEFMODE_VGA;
index 82cb9ffe52908767a94961dbaf758458c38e3cf9..790aa231a5936dd527ec6d1748dea34b0db65931 100644 (file)
@@ -637,7 +637,7 @@ static int pxa168fb_probe(struct platform_device *pdev)
        /*
         * Initialise static fb parameters.
         */
-       info->flags = FBINFO_DEFAULT | FBINFO_PARTIAL_PAN_OK |
+       info->flags = FBINFO_PARTIAL_PAN_OK |
                      FBINFO_HWACCEL_XPAN | FBINFO_HWACCEL_YPAN;
        info->node = -1;
        strscpy(info->fix.id, mi->id, 16);
index 964bc88bb89c4b09cab7086d08fdb3ab0cb24b7d..b180f0f6940e1b769e3713fbde8822a135dcd027 100644 (file)
@@ -99,7 +99,6 @@ static int q40fb_probe(struct platform_device *dev)
        info->var = q40fb_var;
        info->fix = q40fb_fix;
        info->fbops = &q40fb_ops;
-       info->flags = FBINFO_DEFAULT;  /* not as module for now */
        info->pseudo_palette = info->par;
        info->par = NULL;
        info->screen_base = (char *) q40fb_fix.smem_start;
index 6ade8de5df4a0aa7a41298eb0e19bdcceb4ddf51..99576ba3ce6ec678f68ad29740df629310a47edd 100644 (file)
@@ -1688,8 +1688,7 @@ static int riva_set_fbinfo(struct fb_info *info)
        struct riva_par *par = info->par;
 
        NVTRACE_ENTER();
-       info->flags = FBINFO_DEFAULT
-                   | FBINFO_HWACCEL_XPAN
+       info->flags = FBINFO_HWACCEL_XPAN
                    | FBINFO_HWACCEL_YPAN
                    | FBINFO_HWACCEL_COPYAREA
                    | FBINFO_HWACCEL_FILLRECT
index 8f2edccdba462fe656ce7be975e688b0175a0931..c7d221cce06d7eb6cb29afa30c7d40823db7357f 100644 (file)
@@ -869,14 +869,14 @@ static int s1d13xxxfb_probe(struct platform_device *pdev)
               default_par->regs, info->fix.smem_len / 1024, info->screen_base);
 
        info->par = default_par;
-       info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN;
+       info->flags = FBINFO_HWACCEL_YPAN;
        info->fbops = &s1d13xxxfb_fbops;
 
        switch(prod_id) {
        case S1D13506_PROD_ID:  /* activate acceleration */
                s1d13xxxfb_fbops.fb_fillrect = s1d13xxxfb_bitblt_solidfill;
                s1d13xxxfb_fbops.fb_copyarea = s1d13xxxfb_bitblt_copyarea;
-               info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN |
+               info->flags = FBINFO_HWACCEL_YPAN |
                        FBINFO_HWACCEL_FILLRECT | FBINFO_HWACCEL_COPYAREA;
                break;
        default:
index 4a27b68798bf5831655d4b82f7f4e7ff309d8180..b5f84bd4804b83d860b69e1c2452bd6ceaa5381f 100644 (file)
@@ -2135,8 +2135,7 @@ static int savage_init_fb_info(struct fb_info *info, struct pci_dev *dev,
        info->var.accel_flags = 0;
 
        info->fbops          = &savagefb_ops;
-       info->flags          = FBINFO_DEFAULT |
-                              FBINFO_HWACCEL_YPAN |
+       info->flags          = FBINFO_HWACCEL_YPAN |
                               FBINFO_HWACCEL_XPAN;
 
        info->pseudo_palette = par->pseudo_palette;
index e4a13871bca6bdb2190446b467b60f2c6610a57b..461e50c8dd1b247e584b3eba280279224e7a6138 100644 (file)
@@ -479,7 +479,6 @@ static int simplefb_probe(struct platform_device *pdev)
        par->size = info->fix.smem_len;
 
        info->fbops = &simplefb_ops;
-       info->flags = FBINFO_DEFAULT;
        info->screen_base = ioremap_wc(info->fix.smem_start,
                                       info->fix.smem_len);
        if (!info->screen_base) {
index cfba776afcea6d7a3ee464f34d32c4d61f95314e..2beb3512a853658c46c4608271660f0e5505aca9 100644 (file)
@@ -6472,8 +6472,7 @@ error_3:  vfree(ivideo->bios_abase);
                sisfb_initaccel(ivideo);
 
 #if defined(FBINFO_HWACCEL_DISABLED) && defined(FBINFO_HWACCEL_XPAN)
-               sis_fb_info->flags = FBINFO_DEFAULT             |
-                                    FBINFO_HWACCEL_YPAN        |
+               sis_fb_info->flags = FBINFO_HWACCEL_YPAN        |
                                     FBINFO_HWACCEL_XPAN        |
                                     FBINFO_HWACCEL_COPYAREA    |
                                     FBINFO_HWACCEL_FILLRECT    |
index 40c130ab6b38d0c0f374b3448b074aa97ed87b79..7e98850d9bde9b88965c7e18e1cde94d3c378b7d 100644 (file)
@@ -716,7 +716,7 @@ static int xxxfb_probe(struct pci_dev *dev, const struct pci_device_id *ent)
      *
      * NOTE: These are for fbcon use only.
      */
-    info->flags = FBINFO_DEFAULT;
+    info->flags = 0;
 
 /********************* This stage is optional ******************************/
      /*
index adb2b1fe8383c2c4f105955aa400cda479530b56..387d18706fecfe6f464fc280341d456d7711b693 100644 (file)
@@ -114,7 +114,7 @@ static struct fb_fix_screeninfo ufx_fix = {
        .accel =        FB_ACCEL_NONE,
 };
 
-static const u32 smscufx_info_flags = FBINFO_DEFAULT | FBINFO_READS_FAST |
+static const u32 smscufx_info_flags = FBINFO_READS_FAST |
        FBINFO_VIRTFB | FBINFO_HWACCEL_IMAGEBLIT | FBINFO_HWACCEL_FILLRECT |
        FBINFO_HWACCEL_COPYAREA | FBINFO_MISC_ALWAYS_SETPAR;
 
index 582324f5d869a13bb5509321d6f02f933874e868..8d2b1d60dd2eef06168f1b15591bcb68531b81e4 100644 (file)
@@ -1399,7 +1399,6 @@ static int sstfb_probe(struct pci_dev *pdev, const struct pci_device_id *id)
        f_ddprintk("membase_phys: %#lx\n", fix->smem_start);
        f_ddprintk("fbbase_virt: %p\n", info->screen_base);
 
-       info->flags     = FBINFO_DEFAULT;
        info->fbops     = &sstfb_ops;
        info->pseudo_palette = par->palette;
 
index 490bd9a147638e6514cdc5fe23a8afacce2a5d3d..76ff6375a65979c716a2b120af0e12e2a6865dfa 100644 (file)
@@ -72,7 +72,6 @@ static int gfb_set_fbinfo(struct gfb_info *gp)
        struct fb_info *info = gp->info;
        struct fb_var_screeninfo *var = &info->var;
 
-       info->flags = FBINFO_DEFAULT;
        info->fbops = &gfb_ops;
        info->screen_base = gp->fb_base;
        info->screen_size = gp->fb_size;
index 2cab4b9be68aaddcaacf1e8a76a31863fe222d93..8765add3a5be4dc946af85c763804996c7d2b0dc 100644 (file)
@@ -77,7 +77,6 @@ static int s3d_set_fbinfo(struct s3d_info *sp)
        struct fb_info *info = sp->info;
        struct fb_var_screeninfo *var = &info->var;
 
-       info->flags = FBINFO_DEFAULT;
        info->fbops = &s3d_ops;
        info->screen_base = sp->fb_base;
        info->screen_size = sp->fb_size;
index 6ec358af125603ad55a2e488fb872af74a8aa63a..28a5e2251119afc2dd7150364045226a5b49c83f 100644 (file)
@@ -200,7 +200,6 @@ static int e3d_set_fbinfo(struct e3d_info *ep)
        struct fb_info *info = ep->info;
        struct fb_var_screeninfo *var = &info->var;
 
-       info->flags = FBINFO_DEFAULT;
        info->fbops = &e3d_ops;
        info->screen_base = ep->fb_base;
        info->screen_size = ep->fb_size;
index fc3ac2301b455bc6042f2350aa39d2e5eedcd79a..3572766de89c37ee1adec8d269e77effe07fe4d2 100644 (file)
@@ -438,7 +438,6 @@ static int tcx_probe(struct platform_device *op)
                par->mmap_map[i].poff = op->resource[j].start;
        }
 
-       info->flags = FBINFO_DEFAULT;
        info->fbops = &tcx_ops;
 
        /* Initialize brooktree DAC. */
index dd0fa42eceb9b14cbb90659b41a9542a3ebdbee5..68e2a82220f3fbfa2be15fbe6cc5bb2d3f05298a 100644 (file)
@@ -1468,7 +1468,7 @@ static int tdfxfb_probe(struct pci_dev *pdev, const struct pci_device_id *id)
 
        info->fbops             = &tdfxfb_ops;
        info->pseudo_palette    = default_par->palette;
-       info->flags             = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN;
+       info->flags             = FBINFO_HWACCEL_YPAN;
 #ifdef CONFIG_FB_3DFX_ACCEL
        info->flags             |= FBINFO_HWACCEL_FILLRECT |
                                   FBINFO_HWACCEL_COPYAREA |
index b44004880f0d1e25119ab9028aafc9acd0c61177..fc2d08dd1b45a79bbe453f7211358ac227105172 100644 (file)
@@ -1470,7 +1470,7 @@ static int tgafb_register(struct device *dev)
                par->tga_chip_rev = TGA_READ_REG(par, TGA_START_REG) & 0xff;
 
        /* Setup framebuffer.  */
-       info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_COPYAREA |
+       info->flags = FBINFO_HWACCEL_COPYAREA |
                      FBINFO_HWACCEL_IMAGEBLIT | FBINFO_HWACCEL_FILLRECT;
        info->fbops = &tgafb_ops;
        info->screen_base = par->tga_fb_base;
index 6099b9768ba16bfe8c4f00da4bd05e5348b868cd..1ba157530af2fef6461b2d7756a7d5b4f6f162d0 100644 (file)
@@ -1600,7 +1600,7 @@ static int trident_pci_probe(struct pci_dev *dev,
        info->fbops = &tridentfb_ops;
        info->pseudo_palette = default_par->pseudo_pal;
 
-       info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN;
+       info->flags = FBINFO_HWACCEL_YPAN;
        if (!noaccel && default_par->init_accel) {
                info->flags &= ~FBINFO_HWACCEL_DISABLED;
                info->flags |= FBINFO_HWACCEL_COPYAREA;
index a4a21b4ac28c6fd8affa7e6ba4d5dea4bde7a7e2..b70762ead13cdfe4d66c9ccb8ac424565c8fb6da 100644 (file)
@@ -39,7 +39,7 @@ static const struct fb_fix_screeninfo dlfb_fix = {
        .accel =        FB_ACCEL_NONE,
 };
 
-static const u32 udlfb_info_flags = FBINFO_DEFAULT | FBINFO_READS_FAST |
+static const u32 udlfb_info_flags = FBINFO_READS_FAST |
                FBINFO_VIRTFB |
                FBINFO_HWACCEL_IMAGEBLIT | FBINFO_HWACCEL_FILLRECT |
                FBINFO_HWACCEL_COPYAREA | FBINFO_MISC_ALWAYS_SETPAR;
index 2d67c92c57749c8530f8cc42e73552db86ef2837..190fddee62e678034cc289e30f736087da707ae5 100644 (file)
@@ -1770,7 +1770,7 @@ int via_fb_pci_probe(struct viafb_dev *vdev)
        viafbinfo->fix.mmio_len = vdev->engine_len;
        viafbinfo->node = 0;
        viafbinfo->fbops = &viafb_ops;
-       viafbinfo->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN;
+       viafbinfo->flags = FBINFO_HWACCEL_YPAN;
 
        viafbinfo->pseudo_palette = pseudo_pal;
        if (viafb_accel && !viafb_setup_engine(viafbinfo)) {