From ebaed00f41c11ca69b9960dfa68b28d860af49fc Mon Sep 17 00:00:00 2001 From: Arnaud Patard Date: Wed, 31 Jan 2007 10:39:39 -0800 Subject: [PATCH] dsp: don't use registered_fb[1] 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 Acked-by: Hiroshi DOYU Signed-off-by: Tony Lindgren --- arch/arm/plat-omap/dsp/dsp_mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/plat-omap/dsp/dsp_mem.c b/arch/arm/plat-omap/dsp/dsp_mem.c index ec88f908a42..ccf8a54c0e4 100644 --- a/arch/arm/plat-omap/dsp/dsp_mem.c +++ b/arch/arm/plat-omap/dsp/dsp_mem.c @@ -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 */ -- 2.41.1