From: Liu Ying Date: Tue, 11 Sep 2012 04:49:49 +0000 (+0800) Subject: ENGR00223797-7 MX6 SabreSD:Fix ipuv3 fb platform driver register X-Git-Tag: v3.0.35-fsl~419 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2579ee2f3f8ff8822ee6f31c69b3909ffe6bf7e6;p=karo-tx-linux.git ENGR00223797-7 MX6 SabreSD:Fix ipuv3 fb platform driver register As there is only one IPU embedded in MX6DL and two IPUs embedded in MX6DQ. The max ipuv3 fb platform driver number is two for MX6DL and four for MX6DQ. Signed-off-by: Liu Ying --- diff --git a/arch/arm/mach-mx6/board-mx6q_sabresd.c b/arch/arm/mach-mx6/board-mx6q_sabresd.c index 18e5d1a071ed..ab24bb41cbad 100644 --- a/arch/arm/mach-mx6/board-mx6q_sabresd.c +++ b/arch/arm/mach-mx6/board-mx6q_sabresd.c @@ -1712,10 +1712,10 @@ static void __init mx6_sabresd_board_init(void) imx6q_add_ipuv3(0, &ipu_data[0]); if (cpu_is_mx6q()) { imx6q_add_ipuv3(1, &ipu_data[1]); - for (i = 0; i < ARRAY_SIZE(sabresd_fb_data); i++) + for (i = 0; i < 4 && i < ARRAY_SIZE(sabresd_fb_data); i++) imx6q_add_ipuv3fb(i, &sabresd_fb_data[i]); } else - for (i = 0; i < (ARRAY_SIZE(sabresd_fb_data) + 1) / 2; i++) + for (i = 0; i < 2 && i < ARRAY_SIZE(sabresd_fb_data); i++) imx6q_add_ipuv3fb(i, &sabresd_fb_data[i]); imx6q_add_vdoa();