From 3414163949d11ed71a62797ea66f0ee41f448f36 Mon Sep 17 00:00:00 2001 From: yxj Date: Wed, 23 Jan 2013 12:11:10 +0800 Subject: [PATCH] board rk2928 tb:use get_fb_size instead of macro RK30_FB0_MEM_SIZE --- arch/arm/mach-rk2928/board-rk2928-tb.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/arch/arm/mach-rk2928/board-rk2928-tb.c b/arch/arm/mach-rk2928/board-rk2928-tb.c index 69c781e9826a..9c0dcdb20ab5 100755 --- a/arch/arm/mach-rk2928/board-rk2928-tb.c +++ b/arch/arm/mach-rk2928/board-rk2928-tb.c @@ -59,11 +59,6 @@ //#define RK2928L_TB_OLD -#ifdef CONFIG_THREE_FB_BUFFER -#define RK30_FB0_MEM_SIZE 12*SZ_1M -#else -#define RK30_FB0_MEM_SIZE 8*SZ_1M -#endif int __sramdata g_pmic_type = 0; @@ -1063,8 +1058,8 @@ static void __init rk2928_reserve(void) rk30_ion_pdata.heaps[0].base = board_mem_reserve_add("ion", ION_RESERVE_SIZE); #endif #ifdef CONFIG_FB_ROCKCHIP - resource_fb[0].start = board_mem_reserve_add("fb0", RK30_FB0_MEM_SIZE); - resource_fb[0].end = resource_fb[0].start + RK30_FB0_MEM_SIZE - 1; + resource_fb[0].start = board_mem_reserve_add("fb0", get_fb_size()); + resource_fb[0].end = resource_fb[0].start + get_fb_size()- 1; #endif #ifdef CONFIG_VIDEO_RK29 rk30_camera_request_reserve_mem(); -- 2.34.1