diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2009-11-10 01:39:47 +0100 |
---|---|---|
committer | Lars-Peter Clausen <lars@metafoo.de> | 2009-11-10 01:41:04 +0100 |
commit | a03f58c61cb66164aa40cbf7bf3ff5f24a6f658b (patch) | |
tree | a546b2ec2dbfae425f6e6ae56aa995497cda60ec | |
parent | e74f16cc7f13bad990c9dde6b8aa54fdbcb6e7c9 (diff) |
gta02: Don't use pcf50633_bl_set_brightness_limit if the backlight driver is not compiled in
-rw-r--r-- | arch/arm/mach-s3c2442/mach-gta02.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c2442/mach-gta02.c b/arch/arm/mach-s3c2442/mach-gta02.c index eed207a5956..aea46cd2ce9 100644 --- a/arch/arm/mach-s3c2442/mach-gta02.c +++ b/arch/arm/mach-s3c2442/mach-gta02.c @@ -470,7 +470,11 @@ static struct regulator_consumer_supply ldo6_consumers[] = { static struct pcf50633_bl_platform_data gta02_backlight_data = { .default_brightness = 0x3f, +#ifdef CONFIG_BACKLIGHT_PCF50633 .default_brightness_limit = 0, +#else + .default_brightness_limit = 0x3f, +#endif .ramp_time = 3, }; @@ -828,7 +832,9 @@ static struct platform_device gta02_leds_device = { /* JBT6k74 display controller */ static void gta02_jbt6k74_probe_completed(struct device *dev) { +#ifdef CONFIG_BACKLIGHT_PCF50633 pcf50633_bl_set_brightness_limit(gta02_pcf, 0x3f); +#endif } const struct jbt6k74_platform_data jbt6k74_pdata = { |