From b66704779d0419c5fdd39026db36bdc478077d3b Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=BB=84=E6=B6=9B?= Date: Sun, 30 Dec 2012 18:20:27 +0800 Subject: [PATCH] rk30: ds1001b: remove PWM_APB_PRE_DIV on rk2818_backlight.h --- arch/arm/mach-rk30/board-rk30-ds1001b.c | 3 ++- drivers/video/backlight/rk2818_backlight.h | 4 ---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-rk30/board-rk30-ds1001b.c b/arch/arm/mach-rk30/board-rk30-ds1001b.c index 0fa8d94dacc2..9c2b64fe1acf 100644 --- a/arch/arm/mach-rk30/board-rk30-ds1001b.c +++ b/arch/arm/mach-rk30/board-rk30-ds1001b.c @@ -646,7 +646,8 @@ static struct rk29_bl_info rk29_bl_info = { .io_deinit = rk29_backlight_io_deinit, .pwm_suspend = rk29_backlight_pwm_suspend, .pwm_resume = rk29_backlight_pwm_resume, - .min_brightness = 60 + .min_brightness = 60, + .pre_div = 20000, }; static struct platform_device rk29_device_backlight = { diff --git a/drivers/video/backlight/rk2818_backlight.h b/drivers/video/backlight/rk2818_backlight.h index e0804ae839cf..0ce4039e9a9d 100644 --- a/drivers/video/backlight/rk2818_backlight.h +++ b/drivers/video/backlight/rk2818_backlight.h @@ -35,11 +35,7 @@ #define PWM_DIV PWM_DIV2 -#ifdef CONFIG_MACH_RK30_DS1001B -#define PWM_APB_PRE_DIV 20000 -#else #define PWM_APB_PRE_DIV 1000 -#endif #define BL_STEP 255 #endif /* __ASM_ARCH_RK2818_BACKLIGHT_H */ -- 2.34.1