Commit 9b27915b authored by Antonino A. Daplas's avatar Antonino A. Daplas Committed by Linus Torvalds

[PATCH] 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: default avatarAntonino Daplas <adaplas@pol.net>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent f837e6f7
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
#ifndef CONFIG_PPC_PMAC #ifndef CONFIG_PPC_PMAC
/* default mode */ /* 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) */ /* 640x480, 60 Hz, Non-Interlaced (25.175 MHz dotclock) */
640, 480, 640, 480, 0, 0, 8, 0, 640, 480, 640, 480, 0, 0, 8, 0,
{0, 8, 0}, {0, 8, 0}, {0, 8, 0}, {0, 0, 0}, {0, 8, 0}, {0, 8, 0}, {0, 8, 0}, {0, 0, 0},
...@@ -123,7 +123,7 @@ static struct fb_var_screeninfo default_var = { ...@@ -123,7 +123,7 @@ static struct fb_var_screeninfo default_var = {
/* default modedb mode */ /* default modedb mode */
/* 640x480, 60 Hz, Non-Interlaced (25.172 MHz dotclock) */ /* 640x480, 60 Hz, Non-Interlaced (25.172 MHz dotclock) */
static struct fb_videomode defaultmode __initdata = { static struct fb_videomode defaultmode __devinitdata = {
.refresh = 60, .refresh = 60,
.xres = 640, .xres = 640,
.yres = 480, .yres = 480,
...@@ -335,7 +335,7 @@ static const struct aty128_meminfo sdr_sgram = ...@@ -335,7 +335,7 @@ static const struct aty128_meminfo sdr_sgram =
static const struct aty128_meminfo ddr_sgram = static const struct aty128_meminfo ddr_sgram =
{ 4, 4, 3, 3, 2, 3, 1, 16, 31, 16, "64-bit 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", .id = "ATY Rage128",
.type = FB_TYPE_PACKED_PIXELS, .type = FB_TYPE_PACKED_PIXELS,
.visual = FB_VISUAL_PSEUDOCOLOR, .visual = FB_VISUAL_PSEUDOCOLOR,
...@@ -345,15 +345,15 @@ static struct fb_fix_screeninfo aty128fb_fix __initdata = { ...@@ -345,15 +345,15 @@ static struct fb_fix_screeninfo aty128fb_fix __initdata = {
.accel = FB_ACCEL_ATI_RAGE128, .accel = FB_ACCEL_ATI_RAGE128,
}; };
static char *mode_option __initdata = NULL; static char *mode_option __devinitdata = NULL;
#ifdef CONFIG_PPC_PMAC #ifdef CONFIG_PPC_PMAC
static int default_vmode __initdata = VMODE_1024_768_60; static int default_vmode __devinitdata = VMODE_1024_768_60;
static int default_cmode __initdata = CMODE_8; static int default_cmode __devinitdata = CMODE_8;
#endif #endif
static int default_crt_on __initdata = 0; static int default_crt_on __devinitdata = 0;
static int default_lcd_on __initdata = 1; static int default_lcd_on __devinitdata = 1;
#ifdef CONFIG_MTRR #ifdef CONFIG_MTRR
static int mtrr = 1; static int mtrr = 1;
...@@ -445,9 +445,9 @@ static int aty128_encode_var(struct fb_var_screeninfo *var, ...@@ -445,9 +445,9 @@ static int aty128_encode_var(struct fb_var_screeninfo *var,
static int aty128_decode_var(struct fb_var_screeninfo *var, static int aty128_decode_var(struct fb_var_screeninfo *var,
struct aty128fb_par *par); struct aty128fb_par *par);
#if 0 #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); 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 #endif
static void aty128_timings(struct aty128fb_par *par); static void aty128_timings(struct aty128fb_par *par);
static void aty128_init_engine(struct aty128fb_par *par); static void aty128_init_engine(struct aty128fb_par *par);
...@@ -573,7 +573,7 @@ static void aty_pll_writeupdate(const struct aty128fb_par *par) ...@@ -573,7 +573,7 @@ static void aty_pll_writeupdate(const struct aty128fb_par *par)
/* write to the scratch register to test r/w functionality */ /* 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; u32 val;
int flag = 0; int flag = 0;
...@@ -772,7 +772,7 @@ static u32 depth_to_dst(u32 depth) ...@@ -772,7 +772,7 @@ static u32 depth_to_dst(u32 depth)
#ifndef __sparc__ #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; u16 dptr;
u8 rom_type; u8 rom_type;
...@@ -856,7 +856,7 @@ static void __iomem * __init aty128_map_ROM(const struct aty128fb_par *par, stru ...@@ -856,7 +856,7 @@ static void __iomem * __init aty128_map_ROM(const struct aty128fb_par *par, stru
return NULL; 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_hdr;
unsigned int bios_pll; unsigned int bios_pll;
...@@ -903,7 +903,7 @@ static void __iomem * __devinit aty128_find_mem_vbios(struct aty128fb_par *par) ...@@ -903,7 +903,7 @@ static void __iomem * __devinit aty128_find_mem_vbios(struct aty128fb_par *par)
#endif /* ndef(__sparc__) */ #endif /* ndef(__sparc__) */
/* fill in known card constants if pll_block is not available */ /* 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 #ifdef CONFIG_PPC_OF
/* instead of a table lookup, assume OF has properly /* instead of a table lookup, assume OF has properly
...@@ -1645,7 +1645,7 @@ static int aty128fb_sync(struct fb_info *info) ...@@ -1645,7 +1645,7 @@ static int aty128fb_sync(struct fb_info *info)
} }
#ifndef MODULE #ifndef MODULE
static int __init aty128fb_setup(char *options) static int __devinit aty128fb_setup(char *options)
{ {
char *this_opt; char *this_opt;
...@@ -1893,7 +1893,7 @@ static void aty128_early_resume(void *data) ...@@ -1893,7 +1893,7 @@ static void aty128_early_resume(void *data)
} }
#endif /* CONFIG_PPC_PMAC */ #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 fb_info *info = pci_get_drvdata(pdev);
struct aty128fb_par *par = info->par; struct aty128fb_par *par = info->par;
...@@ -2037,7 +2037,7 @@ static int __init aty128_init(struct pci_dev *pdev, const struct pci_device_id * ...@@ -2037,7 +2037,7 @@ static int __init aty128_init(struct pci_dev *pdev, const struct pci_device_id *
#ifdef CONFIG_PCI #ifdef CONFIG_PCI
/* register a card ++ajoshi */ /* 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; unsigned long fb_addr, reg_addr;
struct aty128fb_par *par; struct aty128fb_par *par;
...@@ -2556,7 +2556,7 @@ static int aty128_pci_resume(struct pci_dev *pdev) ...@@ -2556,7 +2556,7 @@ static int aty128_pci_resume(struct pci_dev *pdev)
} }
static int __init aty128fb_init(void) static int __devinit aty128fb_init(void)
{ {
#ifndef MODULE #ifndef MODULE
char *option = NULL; char *option = NULL;
......
...@@ -370,8 +370,9 @@ EXPORT_SYMBOL(mac_map_monitor_sense); ...@@ -370,8 +370,9 @@ EXPORT_SYMBOL(mac_map_monitor_sense);
* *
*/ */
int __init mac_find_mode(struct fb_var_screeninfo *var, struct fb_info *info, int __devinit mac_find_mode(struct fb_var_screeninfo *var,
const char *mode_option, unsigned int default_bpp) struct fb_info *info, const char *mode_option,
unsigned int default_bpp)
{ {
const struct fb_videomode *db = NULL; const struct fb_videomode *db = NULL;
unsigned int dbsize = 0; unsigned int dbsize = 0;
......
...@@ -55,9 +55,10 @@ extern int mac_vmode_to_var(int vmode, int cmode, ...@@ -55,9 +55,10 @@ extern int mac_vmode_to_var(int vmode, int cmode,
extern int mac_var_to_vmode(const struct fb_var_screeninfo *var, int *vmode, extern int mac_var_to_vmode(const struct fb_var_screeninfo *var, int *vmode,
int *cmode); int *cmode);
extern int mac_map_monitor_sense(int sense); extern int mac_map_monitor_sense(int sense);
extern int __init mac_find_mode(struct fb_var_screeninfo *var, extern int __devinit mac_find_mode(struct fb_var_screeninfo *var,
struct fb_info *info, const char *mode_option, struct fb_info *info,
unsigned int default_bpp); const char *mode_option,
unsigned int default_bpp);
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment