]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
video/sticore: Remove info field from STI struct
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 20 Dec 2023 13:22:57 +0000 (14:22 +0100)
committerHelge Deller <deller@gmx.de>
Fri, 12 Jan 2024 11:38:37 +0000 (12:38 +0100)
The info field in struct sti_struct was used to detect the default
display device. That test is now done with the respective Linux device
and the info field is unused. Remove it.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/stifb.c
include/video/sticore.h

index 36e6bcab83aae8e0a2dd160c3d84dabe75d41175..2de0e675fd1504da67b7110ee81152934ad2cbad 100644 (file)
@@ -1389,7 +1389,6 @@ static int __init stifb_init_fb(struct sti_struct *sti, int bpp_pref)
        }
 
        /* save for primary gfx device detection & unregister_framebuffer() */
-       sti->info = info;
        if (register_framebuffer(fb->info) < 0)
                goto out_err4;
 
@@ -1417,7 +1416,6 @@ out_err1:
        iounmap(info->screen_base);
 out_err0:
        framebuffer_release(info);
-       sti->info = NULL;
        return -ENXIO;
 }
 
@@ -1496,7 +1494,6 @@ stifb_cleanup(void)
                        framebuffer_release(info);
                        dev_set_drvdata(sti->dev, NULL);
                }
-               sti->info = NULL;
        }
 }
 
index 9d993e22805da28165b8f8a6edea14ada6876ad2..823666af1871a61a03c15da6e2cf21b73416e1d4 100644 (file)
@@ -3,7 +3,6 @@
 #define STICORE_H
 
 struct device;
-struct fb_info;
 
 /* generic STI structures & functions */
 
@@ -368,9 +367,6 @@ struct sti_struct {
        /* PCI data structures (pg. 17ff from sti.pdf) */
        u8 rm_entry[16]; /* pci region mapper array == pci config space offset */
 
-       /* pointer to the fb_info where this STI device is used */
-       struct fb_info *info;
-
        /* pointer to the parent device */
        struct device *dev;