]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
video: mxc: Avoid setting global_data fb_base
authorSimon Glass <sjg@chromium.org>
Wed, 21 Aug 2024 16:18:56 +0000 (10:18 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 26 Aug 2024 20:05:37 +0000 (14:05 -0600)
This is not used, so don't set it.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/video/imx/mxc_ipuv3_fb.c

index 039b22086a93ca6498efafdff00a2393e70be687..fdeb3cabea7327200796c60c7f55401c90d4c936 100644 (file)
@@ -403,7 +403,6 @@ static int mxcfb_map_video_memory(struct fb_info *fbi)
                (uint32_t) fbi->fix.smem_start, fbi->fix.smem_len);
 
        fbi->screen_size = fbi->fix.smem_len;
-       gd->fb_base = fbi->fix.smem_start;
 
        /* Clear the screen */
        memset((char *)fbi->screen_base, 0, fbi->fix.smem_len);
@@ -633,7 +632,6 @@ static int ipuv3_video_probe(struct udevice *dev)
        mmu_set_region_dcache_behaviour(fb_start, fb_end - fb_start,
                                        DCACHE_WRITEBACK);
        video_set_flush_dcache(dev, true);
-       gd->fb_base = fb_start;
 
        return 0;
 }