ARM: OMAP2+: display: Create omapvrfb and omapfb devices inside omap_display_init
authorArchit Taneja <archit@ti.com>
Mon, 16 Sep 2013 07:18:30 +0000 (12:48 +0530)
committerTony Lindgren <tony@atomide.com>
Tue, 8 Oct 2013 21:02:51 +0000 (14:02 -0700)
commitfc8df75217e1c60183b594a417bc496ab086a453
treedd35bd6b4fdc45281db6122f9d7e055bdd6f4b36
parent7a59743d0ccbeade0cb130f9ceabbe51cb6d3eb7
ARM: OMAP2+: display: Create omapvrfb and omapfb devices inside omap_display_init

Move omapfb and omapvrfb device creation inside the omap_display_init so that
we can correctly create the device based on the presence of omapdss within the
platform.

For example, on a kernel image supporting multiple platforms, omap_init_vrfb and
omap_init_fb will create omapvrfb and omapfb platform devices respectively on a
AM33xx platform even though it doesn't have a VRFB or DSS block.

Signed-off-by: Archit Taneja <archit@ti.com>
Acked-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/display.c
arch/arm/mach-omap2/display.h
arch/arm/mach-omap2/fb.c