Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Bhumika Goyal and committed by
Bartlomiej Zolnierkiewicz
d67fa87d a641261e

+1 -1
+1 -1
drivers/video/fbdev/maxinefb.c
··· 51 51 .vmode = FB_VMODE_NONINTERLACED, 52 52 }; 53 53 54 - static struct fb_fix_screeninfo maxinefb_fix = { 54 + static struct fb_fix_screeninfo maxinefb_fix __initdata = { 55 55 .id = "Maxine", 56 56 .smem_len = (1024*768), 57 57 .type = FB_TYPE_PACKED_PIXELS,