Skip to content

Commit e2e0b83

Browse files
Thomas Zimmermannhdeller
authored andcommitted
video/sticore: Remove info field from STI struct
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 <[email protected]> Signed-off-by: Helge Deller <[email protected]>
1 parent ca6c080 commit e2e0b83

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

drivers/video/fbdev/stifb.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1389,7 +1389,6 @@ static int __init stifb_init_fb(struct sti_struct *sti, int bpp_pref)
13891389
}
13901390

13911391
/* save for primary gfx device detection & unregister_framebuffer() */
1392-
sti->info = info;
13931392
if (register_framebuffer(fb->info) < 0)
13941393
goto out_err4;
13951394

@@ -1417,7 +1416,6 @@ static int __init stifb_init_fb(struct sti_struct *sti, int bpp_pref)
14171416
iounmap(info->screen_base);
14181417
out_err0:
14191418
framebuffer_release(info);
1420-
sti->info = NULL;
14211419
return -ENXIO;
14221420
}
14231421

@@ -1496,7 +1494,6 @@ stifb_cleanup(void)
14961494
framebuffer_release(info);
14971495
dev_set_drvdata(sti->dev, NULL);
14981496
}
1499-
sti->info = NULL;
15001497
}
15011498
}
15021499

include/video/sticore.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#define STICORE_H
44

55
struct device;
6-
struct fb_info;
76

87
/* generic STI structures & functions */
98

@@ -368,9 +367,6 @@ struct sti_struct {
368367
/* PCI data structures (pg. 17ff from sti.pdf) */
369368
u8 rm_entry[16]; /* pci region mapper array == pci config space offset */
370369

371-
/* pointer to the fb_info where this STI device is used */
372-
struct fb_info *info;
373-
374370
/* pointer to the parent device */
375371
struct device *dev;
376372

0 commit comments

Comments
 (0)