Skip to content

Commit

Permalink
fbdev: section cleanup in w100fb
Browse files Browse the repository at this point in the history
Fix up the section in the w100fb driver, by moving:

*	w100fb_remove() from .text to .devexit.text

*	w100_get_xtal_table() from .text to .devinit.text

*	w100fb_init() from .devinit.text to .init.text

Signed-off-by: Henrik Kretzschmar <henne@nachtwindheim.de>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Cc: <stable@kernel.org>	[if "platform-drivers: move probe to .devinit.text in drivers/video" was merged]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Henrik Kretzschmar authored and Linus Torvalds committed May 25, 2010
1 parent ad14584 commit fb6cb32
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions drivers/video/w100fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ static void w100_update_enable(void);
static void w100_update_disable(void);
static void calc_hsync(struct w100fb_par *par);
static void w100_init_graphic_engine(struct w100fb_par *par);
struct w100_pll_info *w100_get_xtal_table(unsigned int freq);
struct w100_pll_info *w100_get_xtal_table(unsigned int freq) __devinit;

/* Pseudo palette size */
#define MAX_PALETTES 16
Expand Down Expand Up @@ -782,7 +782,7 @@ int __devinit w100fb_probe(struct platform_device *pdev)
}


static int w100fb_remove(struct platform_device *pdev)
static int __devexit w100fb_remove(struct platform_device *pdev)
{
struct fb_info *info = platform_get_drvdata(pdev);
struct w100fb_par *par=info->par;
Expand Down Expand Up @@ -1020,7 +1020,7 @@ static struct pll_entries {
{ 0 },
};

struct w100_pll_info *w100_get_xtal_table(unsigned int freq)
struct w100_pll_info __devinit *w100_get_xtal_table(unsigned int freq)
{
struct pll_entries *pll_entry = w100_pll_tables;

Expand Down Expand Up @@ -1611,15 +1611,15 @@ static void w100_vsync(void)

static struct platform_driver w100fb_driver = {
.probe = w100fb_probe,
.remove = w100fb_remove,
.remove = __devexit_p(w100fb_remove),
.suspend = w100fb_suspend,
.resume = w100fb_resume,
.driver = {
.name = "w100fb",
},
};

int __devinit w100fb_init(void)
int __init w100fb_init(void)
{
return platform_driver_register(&w100fb_driver);
}
Expand Down

0 comments on commit fb6cb32

Please sign in to comment.