macmodes: Fix section warning
PATCH 1/1 macmodes: Fix section warning
Fix the following warning:
WARNING: drivers/video/macmodes.o - Section mismatch: reference to .init.text:mac_find_mode from __ksymtab after '__ksymtab_mac_find_mode' (at offset 0x10)
Signed-off-by Antonino Daplas <[email protected]>
---
drivers/video/aty/aty128fb.c | 36 ++++++++++++++++++------------------ drivers/video/macmodes.c | 5 +++-- drivers/video/macmodes.h | 7 ++++--- 3 files changed, 25 insertions(+), 23 deletions(-)
drivers/video/aty/aty128fb.c +18 -18
@@ -100,7 +100,7 @@ #endif#ifndef CONFIG_PPC_PMAC /* default mode */ -static struct fb_var_screeninfo default_var__initdata = { +static struct fb_var_screeninfo default_var__devinitdata = {/* 640x480, 60 Hz, Non-Interlaced (25.175 MHz dotclock) */ 640 ,480 ,640 ,480 ,0 ,0 ,8 ,0 , {0, 8, 0}, {0, 8, 0}, {0, 8, 0}, {0, 0, 0},
@@ -123,7 +123,7 @@ #endif /* CONFIG_PPC_PMAC *//* default modedb mode */ /* 640x480, 60 Hz, Non-Interlaced (25.172 MHz dotclock) */ -static struct fb_videomode defaultmode__initdata = { +static struct fb_videomode defaultmode__devinitdata = { .refresh =60 , .xres =640 , .yres =480 ,
@@ -335,7 +335,7 @@ static const struct aty128_meminfo sdr_sstatic const struct aty128_meminfo ddr_sgram = {4 ,4 ,3 ,3 ,2 ,3 ,1 ,16 ,31 ,16 ,"64-bit DDR SGRAM" }; -static struct fb_fix_screeninfo aty128fb_fix__initdata = { +static struct fb_fix_screeninfo aty128fb_fix__devinitdata = { .id ="ATY Rage128" , .type =FB_TYPE_PACKED_PIXELS , .visual =FB_VISUAL_PSEUDOCOLOR ,
@@ -345,15 +345,15 @@ static struct fb_fix_screeninfo aty128fb .accel = FB_ACCEL_ATI_RAGE128, }; -static char *mode_option__initdata =NULL ; +static char *mode_option__devinitdata =NULL ;#ifdef CONFIG_PPC_PMAC -static int default_vmode__initdata =VMODE_1024_768_60 ; -static int default_cmode__initdata =CMODE_8 ; +static int default_vmode__devinitdata =VMODE_1024_768_60 ; +static int default_cmode__devinitdata =CMODE_8 ;#endif -static int default_crt_on__initdata =0 ; -static int default_lcd_on__initdata =1 ; +static int default_crt_on__devinitdata =0 ; +static int default_lcd_on__devinitdata =1 ;#ifdef CONFIG_MTRR static int mtrr =1 ;
@@ -445,9 +445,9 @@ static int aty128_encode_var(struct fb_vstatic int aty128_decode_var (struct fb_var_screeninfo *var,struct aty128fb_par *par);#if 0 -static void __init aty128_get_pllinfo (struct aty128fb_par *par, +static void __devinit aty128_get_pllinfo (struct aty128fb_par *par,void __iomem *bios); -static void __init __iomem *aty128_map_ROM (struct pci_dev *pdev,const struct aty128fb_par *par); +static void __devinit __iomem *aty128_map_ROM (struct pci_dev *pdev,const struct aty128fb_par *par);#endif static void aty128_timings (struct aty128fb_par *par);static void aty128_init_engine (struct aty128fb_par *par);
@@ -573,7 +573,7 @@ static void aty_pll_writeupdate(const st/* write to the scratch register to test r/w functionality */ -static int __init register_test (const struct aty128fb_par *par) +static int __devinit register_test (const struct aty128fb_par *par) {u32 val;int flag =0 ;
@@ -772,7 +772,7 @@ static u32 depth_to_dst(u32 depth)#ifndef __sparc__ -static void __iomem *__init aty128_map_ROM (const struct aty128fb_par *par,struct pci_dev *dev) +static void __iomem *__devinit aty128_map_ROM (const struct aty128fb_par *par,struct pci_dev *dev) {u16 dptr;u8 rom_type;
@@ -856,7 +856,7 @@ static void __iomem * __init aty128_map_return NULL ; } -static void __init aty128_get_pllinfo (struct aty128fb_par *par,unsigned char __iomem *bios) +static void __devinit aty128_get_pllinfo (struct aty128fb_par *par,unsigned char __iomem *bios) {unsigned int bios_hdr;unsigned int bios_pll;
@@ -903,7 +903,7 @@ #endif#endif /* ndef(__sparc__) */ /* fill in known card constants if pll_block is not available */ -static void __init aty128_timings (struct aty128fb_par *par) +static void __devinit aty128_timings (struct aty128fb_par *par) {#ifdef CONFIG_PPC_OF /* instead of a table lookup, assume OF has properly
@@ -1645,7 +1645,7 @@ static int aty128fb_sync(struct fb_info }#ifndef MODULE -static int __init aty128fb_setup (char *options) +static int __devinit aty128fb_setup (char *options) {char *this_opt;
@@ -1893,7 +1893,7 @@ static void aty128_early_resume(void *da }#endif /* CONFIG_PPC_PMAC */ -static int __init aty128_init (struct pci_dev *pdev,const struct pci_device_id *ent) +static int __devinit aty128_init (struct pci_dev *pdev,const struct pci_device_id *ent) {struct fb_info *info =pci_get_drvdata (pdev);struct aty128fb_par *par = info->par;
@@ -2037,7 +2037,7 @@ #endif#ifdef CONFIG_PCI /* register a card ++ajoshi */ -static int __init aty128_probe (struct pci_dev *pdev,const struct pci_device_id *ent) +static int __devinit aty128_probe (struct pci_dev *pdev,const struct pci_device_id *ent) {unsigned long fb_addr, reg_addr;struct aty128fb_par *par;
@@ -2556,7 +2556,7 @@ static int aty128_pci_resume(struct pci_ } -static int __init aty128fb_init (void ) +static int __devinit aty128fb_init (void ) {#ifndef MODULE char *option =NULL ;
drivers/video/macmodes.c +3 -2
@@ -370,8 +370,9 @@ EXPORT_SYMBOL(mac_map_monitor_sense);* */ -int __init mac_find_mode (struct fb_var_screeninfo *var,struct fb_info *info, -const char *mode_option,unsigned int default_bpp) +int __devinit mac_find_mode (struct fb_var_screeninfo *var, +struct fb_info *info,const char *mode_option, +unsigned int default_bpp) {const struct fb_videomode *db =NULL ;unsigned int dbsize =0 ;
drivers/video/macmodes.h +4 -3
@@ -55,9 +55,10 @@ extern int mac_vmode_to_var(int vmode, iextern int mac_var_to_vmode (const struct fb_var_screeninfo *var,int *vmode,int *cmode);extern int mac_map_monitor_sense (int sense); -extern int __init mac_find_mode (struct fb_var_screeninfo *var, -struct fb_info *info,const char *mode_option, -unsigned int default_bpp); +extern int __devinit mac_find_mode (struct fb_var_screeninfo *var, +struct fb_info *info, +const char *mode_option, +unsigned int default_bpp);/*