From 48d861ef1618a3f4f325fd1494a9b56935f1d3c9 Mon Sep 17 00:00:00 2001 From: Tony Lindgren Date: Wed, 19 Oct 2005 23:23:26 +0300 Subject: [PATCH] ARM: OMAP: Make registration work Make registration work --- arch/arm/plat-omap/devices.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/arm/plat-omap/devices.c b/arch/arm/plat-omap/devices.c index c9b37ccef67..b3c21f06953 100644 --- a/arch/arm/plat-omap/devices.c +++ b/arch/arm/plat-omap/devices.c @@ -331,10 +331,8 @@ static inline void omap_init_fb(void) const struct omap_lcd_config *conf; conf = omap_get_config(OMAP_TAG_LCD, struct omap_lcd_config); - if (conf == NULL) - return; - - omap_fb_conf = *conf; + if (conf != NULL) + omap_fb_conf = *conf; platform_device_register(&omap_fb_device); } @@ -369,6 +367,7 @@ static int __init omap_init_devices(void) /* please keep these calls, and their implementations above, * in alphabetical order so they're easier to sort through. */ + omap_init_fb(); omap_init_i2c(); omap_init_mmc(); omap_init_wdt(); -- 2.41.1