]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/kernel-video.git/commitdiff
ARCH: OMAP: FB: Omapfb_set_platform_data move
authorArthur Philpott <arthur.philpott@ti.com>
Fri, 12 Apr 2013 13:29:05 +0000 (08:29 -0500)
committerPraneeth Bajjuri <praneeth@ti.com>
Fri, 12 Jul 2013 22:28:57 +0000 (17:28 -0500)
Omapfb_set_platform_data function must be moved before
the initialization or else omapfb_config will never
be set with the correct data.

Change-Id: I8366f54973fdb367cc3e47714b92216ffbe0691b
Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
arch/arm/mach-omap2/fb.c

index 2767cb203d7b2171e01575b6003ac94245329c8f..14455b824c2c519df72f1147103488f094104506 100644 (file)
@@ -108,6 +108,11 @@ static struct platform_device omap_fb_device = {
        .num_resources = 0,
 };
 
+void omapfb_set_platform_data(struct omapfb_platform_data *data)
+{
+       omapfb_config = *data;
+}
+
 static int __init omap_init_fb(void)
 {
        return platform_device_register(&omap_fb_device);
@@ -117,8 +122,3 @@ arch_initcall(omap_init_fb);
 
 #endif
 
-void omapfb_set_platform_data(struct omapfb_platform_data *data)
-{
-       omapfb_config = *data;
-}
-