]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[CG14]: Fix section mismatch warnings.
authorRobert Reif <reif@earthlink.net>
Fri, 9 Mar 2007 05:22:03 +0000 (21:22 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sat, 10 Mar 2007 07:10:56 +0000 (23:10 -0800)
Fix section mismatch warning by moving data into __devinitdata section.
Add __devinit to an initialization function.

Signed-off-by: Robert Reif <reif@earthlink.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/video/cg14.c

index ec6a51a5822d375d9068716d4a1d66e659f0b6d0..b071bb632b9748c02eff25b178d0e61708f8ac70 100644 (file)
@@ -354,7 +354,8 @@ static int cg14_ioctl(struct fb_info *info, unsigned int cmd, unsigned long arg)
  *  Initialisation
  */
 
-static void cg14_init_fix(struct fb_info *info, int linebytes, struct device_node *dp)
+static void __devinit cg14_init_fix(struct fb_info *info, int linebytes,
+                                   struct device_node *dp)
 {
        const char *name = dp->name;
 
@@ -368,7 +369,7 @@ static void cg14_init_fix(struct fb_info *info, int linebytes, struct device_nod
        info->fix.accel = FB_ACCEL_SUN_CG14;
 }
 
-static struct sbus_mmap_map __cg14_mmap_map[CG14_MMAP_ENTRIES] __initdata = {
+static struct sbus_mmap_map __cg14_mmap_map[CG14_MMAP_ENTRIES] __devinitdata = {
        {
                .voff   = CG14_REGS,
                .poff   = 0x80000000,