diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2011-09-20 10:07:24 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-02-23 09:38:54 +0200 |
commit | 1896e2f145ef95e7b9a5271332066e27a8750a16 (patch) | |
tree | be43545465c842e2edd56db390db9ee52747c245 /drivers/video/omap/omapfb_main.c | |
parent | 2a803c887b654bad7d6699f1270eaac31361afc9 (diff) | |
download | op-kernel-dev-1896e2f145ef95e7b9a5271332066e27a8750a16.zip op-kernel-dev-1896e2f145ef95e7b9a5271332066e27a8750a16.tar.gz |
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/video/omap/omapfb_main.c')
-rw-r--r-- | drivers/video/omap/omapfb_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/omap/omapfb_main.c b/drivers/video/omap/omapfb_main.c index 73924bc..aaf09901 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) if (fbdev->ctrl->setup_mem == NULL) return -ENODEV; - if (mi->type > OMAPFB_MEMTYPE_MAX) + if (mi->type != OMAPFB_MEMTYPE_SDRAM) return -EINVAL; size = PAGE_ALIGN(mi->size); |