1 From 370d1f93a32e8fcaeac5c16574417e354af21d08 Mon Sep 17 00:00:00 2001
2 From: Vaibhav Hiremath <hvaibhav@ti.com>
3 Date: Tue, 31 Mar 2009 18:38:31 +0530
4 Subject: [PATCH 11/69] DSS2: Allocated memory for Color Look-up-table
6 We were not allocating memory for CMAP buffer and due to that
7 G_CMAP was failing, since it does check for size of CMAP buffer.
9 Called "fb_alloc_cmap" for llocating memory for CMAP.
11 We are currently not supporting 1,2,4,8 bpp, so meaning less
12 for us as of now. But for completeness this is required.
14 Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
16 drivers/video/omap2/omapfb/omapfb-main.c | 5 +++++
17 1 files changed, 5 insertions(+), 0 deletions(-)
19 diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c
20 index 44febef..afe40a9 100644
21 --- a/drivers/video/omap2/omapfb/omapfb-main.c
22 +++ b/drivers/video/omap2/omapfb/omapfb-main.c
23 @@ -1525,6 +1525,11 @@ int omapfb_fb_init(struct omapfb2_device *fbdev, struct fb_info *fbi)
28 + r = fb_alloc_cmap(&fbi->cmap, 256, 0);
30 + dev_err(fbdev->dev, "unable to allocate color map memory\n");