VIDEO: PMAGB-B: Fix section mismatch
WARNING: drivers/built-in.o(.devinit.text+0xc0): Section mismatch in reference from the function pmagbafb_probe() to the variable .init.data:pmagbafb_fix The function __devinit pmagbafb_probe() references a variable __initdata pmagbafb_fix. If pmagbafb_fix is only used by pmagbafb_probe then annotate pmagbafb_fix with a matching annotation. Fixing this one triggers a few more mismatches in order: WARNING: drivers/video/built-in.o(.devinit.text+0x414): Section mismatch in reference from the function pmagbbfb_probe() to the variable .init.data:pmagbbfb_fix The function __devinit pmagbbfb_probe() references a variable __initdata pmagbbfb_fix. If pmagbbfb_fix is only used by pmagbbfb_probe then annotate pmagbbfb_fix with a matching annotation. WARNING: drivers/video/built-in.o(.devinit.text+0x45c): Section mismatch in reference from the function pmagbbfb_probe() to the variable .init.data:pmagbbfb_defined The function __devinit pmagbbfb_probe() references a variable __initdata pmagbbfb_defined. If pmagbbfb_defined is only used by pmagbbfb_probe then annotate pmagbbfb_defined with a matching annotation. WARNING: drivers/video/built-in.o(.devinit.text+0x5fc): Section mismatch in reference from the function pmagbbfb_probe() to the function .init.text:pmagbbfb_screen_setup() The function __devinit pmagbbfb_probe() references a function __init pmagbbfb_screen_setup(). If pmagbbfb_screen_setup is only used by pmagbbfb_probe then annotate pmagbbfb_screen_setup with a matching annotation. WARNING: drivers/video/built-in.o(.devinit.text+0x6f4): Section mismatch in reference from the function pmagbbfb_probe() to the function .init.text:pmagbbfb_osc_setup() The function __devinit pmagbbfb_probe() references a function __init pmagbbfb_osc_setup(). If pmagbbfb_osc_setup is only used by pmagbbfb_probe then annotate pmagbbfb_osc_setup with a matching annotation. WARNING: drivers/video/built-in.o(.devinit.text+0x5f8): Section mismatch in reference from the function pmagbbfb_osc_setup() to the variable .init.data:pmagbbfb_freqs.15993 The function __devinit pmagbbfb_osc_setup() references a variable __initdata pmagbbfb_freqs.15993. If pmagbbfb_freqs.15993 is only used by pmagbbfb_osc_setup then annotate pmagbbfb_freqs.15993 with a matching annotation. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
Родитель
9625b51350
Коммит
5b1638d940
|
@ -45,7 +45,7 @@ struct pmagbbfb_par {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
static struct fb_var_screeninfo pmagbbfb_defined __initdata = {
|
static struct fb_var_screeninfo pmagbbfb_defined __devinitdata = {
|
||||||
.bits_per_pixel = 8,
|
.bits_per_pixel = 8,
|
||||||
.red.length = 8,
|
.red.length = 8,
|
||||||
.green.length = 8,
|
.green.length = 8,
|
||||||
|
@ -58,7 +58,7 @@ static struct fb_var_screeninfo pmagbbfb_defined __initdata = {
|
||||||
.vmode = FB_VMODE_NONINTERLACED,
|
.vmode = FB_VMODE_NONINTERLACED,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct fb_fix_screeninfo pmagbbfb_fix __initdata = {
|
static struct fb_fix_screeninfo pmagbbfb_fix __devinitdata = {
|
||||||
.id = "PMAGB-BA",
|
.id = "PMAGB-BA",
|
||||||
.smem_len = (2048 * 1024),
|
.smem_len = (2048 * 1024),
|
||||||
.type = FB_TYPE_PACKED_PIXELS,
|
.type = FB_TYPE_PACKED_PIXELS,
|
||||||
|
@ -148,7 +148,7 @@ static void __init pmagbbfb_erase_cursor(struct fb_info *info)
|
||||||
/*
|
/*
|
||||||
* Set up screen parameters.
|
* Set up screen parameters.
|
||||||
*/
|
*/
|
||||||
static void __init pmagbbfb_screen_setup(struct fb_info *info)
|
static void __devinit pmagbbfb_screen_setup(struct fb_info *info)
|
||||||
{
|
{
|
||||||
struct pmagbbfb_par *par = info->par;
|
struct pmagbbfb_par *par = info->par;
|
||||||
|
|
||||||
|
@ -180,9 +180,9 @@ static void __init pmagbbfb_screen_setup(struct fb_info *info)
|
||||||
/*
|
/*
|
||||||
* Determine oscillator configuration.
|
* Determine oscillator configuration.
|
||||||
*/
|
*/
|
||||||
static void __init pmagbbfb_osc_setup(struct fb_info *info)
|
static void __devinit pmagbbfb_osc_setup(struct fb_info *info)
|
||||||
{
|
{
|
||||||
static unsigned int pmagbbfb_freqs[] __initdata = {
|
static unsigned int pmagbbfb_freqs[] __devinitdata = {
|
||||||
130808, 119843, 104000, 92980, 74370, 72800,
|
130808, 119843, 104000, 92980, 74370, 72800,
|
||||||
69197, 66000, 65000, 50350, 36000, 32000, 25175
|
69197, 66000, 65000, 50350, 36000, 32000, 25175
|
||||||
};
|
};
|
||||||
|
@ -247,7 +247,7 @@ static void __init pmagbbfb_osc_setup(struct fb_info *info)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
static int __init pmagbbfb_probe(struct device *dev)
|
static int __devinit pmagbbfb_probe(struct device *dev)
|
||||||
{
|
{
|
||||||
struct tc_dev *tdev = to_tc_dev(dev);
|
struct tc_dev *tdev = to_tc_dev(dev);
|
||||||
resource_size_t start, len;
|
resource_size_t start, len;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче