[hbbtv/youtubetv] Fixed hanup bug and segmentation fault on 3rd-party images.
[vuplus_openembedded] / recipes / linux / linux-omap-2.6.28 / 0011-DSS-OMAPFB-fix-GFX_SYNC-to-be-compatible-with-DSS1.patch
1 From 36d6e7edd70d16ad57ed745a1c48694805035dc7 Mon Sep 17 00:00:00 2001
2 From: Tomi Valkeinen <tomi.valkeinen@nokia.com>
3 Date: Wed, 7 Jan 2009 17:17:08 +0200
4 Subject: [PATCH] OMAPFB: fix GFX_SYNC to be compatible with DSS1
5
6 DSS1 never returned an error from GFX_SYNC ioctl. So we neither.
7 ---
8  drivers/video/omap2/omapfb-ioctl.c |    3 ++-
9  1 files changed, 2 insertions(+), 1 deletions(-)
10
11 diff --git a/drivers/video/omap2/omapfb-ioctl.c b/drivers/video/omap2/omapfb-ioctl.c
12 index bb5f791..0cb0370 100644
13 --- a/drivers/video/omap2/omapfb-ioctl.c
14 +++ b/drivers/video/omap2/omapfb-ioctl.c
15 @@ -314,7 +314,8 @@ int omapfb_ioctl(struct fb_info *fbi, unsigned int cmd, unsigned long arg)
16         switch (cmd) {
17         case OMAPFB_SYNC_GFX:
18                 if (!display || !display->sync) {
19 -                       r = -EINVAL;
20 +                       /* DSS1 never returns an error here, so we neither */
21 +                       /*r = -EINVAL;*/
22                         break;
23                 }
24  
25 -- 
26 1.5.6.3
27