Skip to content

Commit

Permalink
sm501fb: fix section mismatch warning
Browse files Browse the repository at this point in the history
Fix section mismatch warning in sm501fb:

WARNING: drivers/video/sm501fb.o(.text+0x21d6): Section mismatch in reference from the function sm501fb_init_fb() to the variable .devinit.data:sm501_default_mode
The function sm501fb_init_fb() references
the variable __devinitdata sm501_default_mode.
This is often because sm501fb_init_fb lacks a __devinitdata
annotation or the annotation of sm501_default_mode is wrong.

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Randy Dunlap authored and Paul Mundt committed Jun 24, 2011
1 parent 3535ed3 commit 9845afc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/sm501fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1664,7 +1664,7 @@ static void sm501fb_stop(struct sm501fb_info *info)
resource_size(info->regs_res));
}

static int sm501fb_init_fb(struct fb_info *fb,
static int __devinit sm501fb_init_fb(struct fb_info *fb,
enum sm501_controller head,
const char *fbname)
{
Expand Down

0 comments on commit 9845afc

Please sign in to comment.