Skip to content

Commit

Permalink
ARM: omap/fb: move omap_init_fb to .init.text
Browse files Browse the repository at this point in the history
omap_init_fb() is only called as arch_initcall and so can live in
.init.text.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
  • Loading branch information
Uwe Kleine-König authored and Tomi Valkeinen committed Oct 22, 2010
1 parent 87ba828 commit 375c324
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm/plat-omap/fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ void omapfb_set_ctrl_platform_data(void *data)
omapfb_config.ctrl_platform_data = data;
}

static inline int omap_init_fb(void)
static int __init omap_init_fb(void)
{
const struct omap_lcd_config *conf;

Expand Down Expand Up @@ -381,7 +381,7 @@ void omapfb_set_platform_data(struct omapfb_platform_data *data)
omapfb_config = *data;
}

static inline int omap_init_fb(void)
static int __init omap_init_fb(void)
{
return platform_device_register(&omap_fb_device);
}
Expand Down

0 comments on commit 375c324

Please sign in to comment.