提交 5850e0cf 编写于 作者: V Ville Syrjala 提交者: Linus Torvalds

[PATCH] atyfb: Fix __init and __devinit annotations

Fix some __init and __devinit annotations.
Signed-off-by: NVille Syrjala <syrjala@sci.fi>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 044aaa32
...@@ -3181,7 +3181,7 @@ static int __devinit atyfb_setup_sparc(struct pci_dev *pdev, ...@@ -3181,7 +3181,7 @@ static int __devinit atyfb_setup_sparc(struct pci_dev *pdev,
#ifdef __i386__ #ifdef __i386__
#ifdef CONFIG_FB_ATY_GENERIC_LCD #ifdef CONFIG_FB_ATY_GENERIC_LCD
static void aty_init_lcd(struct atyfb_par *par, u32 bios_base) static void __devinit aty_init_lcd(struct atyfb_par *par, u32 bios_base)
{ {
u32 driv_inf_tab, sig; u32 driv_inf_tab, sig;
u16 lcd_ofs; u16 lcd_ofs;
...@@ -3644,7 +3644,7 @@ static int __devinit atyfb_pci_probe(struct pci_dev *pdev, const struct pci_devi ...@@ -3644,7 +3644,7 @@ static int __devinit atyfb_pci_probe(struct pci_dev *pdev, const struct pci_devi
#ifdef CONFIG_ATARI #ifdef CONFIG_ATARI
static int __devinit atyfb_atari_probe(void) static int __init atyfb_atari_probe(void)
{ {
struct atyfb_par *par; struct atyfb_par *par;
struct fb_info *info; struct fb_info *info;
...@@ -3794,7 +3794,7 @@ static struct pci_driver atyfb_driver = { ...@@ -3794,7 +3794,7 @@ static struct pci_driver atyfb_driver = {
#endif /* CONFIG_PCI */ #endif /* CONFIG_PCI */
#ifndef MODULE #ifndef MODULE
static int __devinit atyfb_setup(char *options) static int __init atyfb_setup(char *options)
{ {
char *this_opt; char *this_opt;
...@@ -3866,7 +3866,7 @@ static int __devinit atyfb_setup(char *options) ...@@ -3866,7 +3866,7 @@ static int __devinit atyfb_setup(char *options)
} }
#endif /* MODULE */ #endif /* MODULE */
static int __devinit atyfb_init(void) static int __init atyfb_init(void)
{ {
int err1 = 1, err2 = 1; int err1 = 1, err2 = 1;
#ifndef MODULE #ifndef MODULE
......
...@@ -370,8 +370,8 @@ void aty_set_pll_ct(const struct fb_info *info, const union aty_pll *pll) ...@@ -370,8 +370,8 @@ void aty_set_pll_ct(const struct fb_info *info, const union aty_pll *pll)
#endif #endif
} }
static void __init aty_get_pll_ct(const struct fb_info *info, static void __devinit aty_get_pll_ct(const struct fb_info *info,
union aty_pll *pll) union aty_pll *pll)
{ {
struct atyfb_par *par = (struct atyfb_par *) info->par; struct atyfb_par *par = (struct atyfb_par *) info->par;
u8 tmp, clock; u8 tmp, clock;
...@@ -394,8 +394,8 @@ static void __init aty_get_pll_ct(const struct fb_info *info, ...@@ -394,8 +394,8 @@ static void __init aty_get_pll_ct(const struct fb_info *info,
} }
} }
static int __init aty_init_pll_ct(const struct fb_info *info, static int __devinit aty_init_pll_ct(const struct fb_info *info,
union aty_pll *pll) union aty_pll *pll)
{ {
struct atyfb_par *par = (struct atyfb_par *) info->par; struct atyfb_par *par = (struct atyfb_par *) info->par;
u8 mpost_div, xpost_div, sclk_post_div_real, sclk_fb_div, spll_cntl2; u8 mpost_div, xpost_div, sclk_post_div_real, sclk_fb_div, spll_cntl2;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册