summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-01-11 17:09:50 +0100
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>2017-01-11 17:09:50 +0100
commitd67fa87de05ff11758d505aa5b5143ae978f4d16 (patch)
tree952a09756a3fbf58ed4b6a60bf1ca22d32104ebb /drivers/video/fbdev
parenta641261e999842bee7326b2d0e84bf2214f03022 (diff)
video: fbdev: maxinefb: add __initdata to maxinefb_fix
The object maxinefb_fix of type fb_fix_screeninfo is never referenced after initialization by maxinefb_init. In the init function, the object and one of its fields is only stored into another variable. So, the object and its fields are never referenced anywhere after initialization and therefore add __initdata to its declaration. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Diffstat (limited to 'drivers/video/fbdev')
-rw-r--r--drivers/video/fbdev/maxinefb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/maxinefb.c b/drivers/video/fbdev/maxinefb.c
index 5cf52d3c8e75..cab7333208ea 100644
--- a/drivers/video/fbdev/maxinefb.c
+++ b/drivers/video/fbdev/maxinefb.c
@@ -51,7 +51,7 @@ static struct fb_var_screeninfo maxinefb_defined = {
.vmode = FB_VMODE_NONINTERLACED,
};
-static struct fb_fix_screeninfo maxinefb_fix = {
+static struct fb_fix_screeninfo maxinefb_fix __initdata = {
.id = "Maxine",
.smem_len = (1024*768),
.type = FB_TYPE_PACKED_PIXELS,