aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2011-09-20 03:07:24 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2012-02-23 02:38:54 -0500
commit1896e2f145ef95e7b9a5271332066e27a8750a16 (patch)
treebe43545465c842e2edd56db390db9ee52747c245 /drivers
parent2a803c887b654bad7d6699f1270eaac31361afc9 (diff)
OMAPFB: Remove video SRAM support (old omapfb)
OMAP SRAM can be used as video memory on OMAP1 and 2. However, there usually is very little SRAM available, thus limiting its use, and no board supported by the kernel currently uses it. This patch removes the use of SRAM as video ram for the old omapfb driver to simplify memory handling. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Acked-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/omap/omapfb_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/omap/omapfb_main.c b/drivers/video/omap/omapfb_main.c
index 73924bc9959e..aaf0990162cc 100644
--- a/drivers/video/omap/omapfb_main.c
+++ b/drivers/video/omap/omapfb_main.c
@@ -867,7 +867,7 @@ static int omapfb_setup_mem(struct fb_info *fbi, struct omapfb_mem_info *mi)
867 867
868 if (fbdev->ctrl->setup_mem == NULL) 868 if (fbdev->ctrl->setup_mem == NULL)
869 return -ENODEV; 869 return -ENODEV;
870 if (mi->type > OMAPFB_MEMTYPE_MAX) 870 if (mi->type != OMAPFB_MEMTYPE_SDRAM)
871 return -EINVAL; 871 return -EINVAL;
872 872
873 size = PAGE_ALIGN(mi->size); 873 size = PAGE_ALIGN(mi->size);