]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
dsp: don't use registered_fb[1]
authorArnaud Patard <arnaud.patard@rtp-net.org>
Wed, 31 Jan 2007 18:39:39 +0000 (10:39 -0800)
committerTony Lindgren <tony@atomide.com>
Wed, 31 Jan 2007 18:39:39 +0000 (10:39 -0800)
According to dsp_fbexport(), the dsp code handles only the first
registered framebuffer, so using registered_fb[1] in mbox_fbctl_upd is
wrong. registered_fb[0] must be used instead.
This code has also the side effect to oops the kernel as
registered_fb[1] is null and omapfb_update_window_async doesn't handle
this case. The fix for omapfb_update_window_async is sent in an other
mail.

Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Acked-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/dsp/dsp_mem.c

index ec88f908a4261ee42076779eba9c7c9d3aef647e..ccf8a54c0e4351c9812ad9cb6349ca4019457fae 100644 (file)
@@ -2052,7 +2052,7 @@ void mbox_fbctl_upd(void)
                return;
        }
        //printk("calling omapfb_update_window_async()\n");
-       omapfb_update_window_async(registered_fb[1], &win, fbupd_cb, NULL);
+       omapfb_update_window_async(registered_fb[0], &win, fbupd_cb, NULL);
 }
 
 #else /* CONFIG_FB_OMAP_LCDC_EXTERNAL */