Make pandora use twl4030-pwm0-bl instead of gpio-bl
authorGrazvydas Ignotas <notasas@gmail.com>
Sun, 8 Feb 2009 22:30:57 +0000 (00:30 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 8 Feb 2009 22:30:57 +0000 (00:30 +0200)
arch/arm/mach-omap2/board-omap3pandora.c

index d5f757d..dbba6ad 100644 (file)
@@ -190,8 +190,8 @@ static struct platform_device omap3pandora_leds_gpio = {
        },
 };
 
-static struct platform_device omap3pandora_bl_gpio = {
-       .name   = "gpio-backlight",
+static struct platform_device omap3pandora_bl = {
+       .name   = "twl4030-pwm0-bl",
        .id     = -1,
 };
 
@@ -204,8 +204,7 @@ static int omap3pandora_twl_gpio_setup(struct device *dev,
        /* TWL4030_GPIO_MAX + 1 == ledB, POWER_LED (out, active low) */
        omap3pandora_gpio_leds[1].gpio = gpio + TWL4030_GPIO_MAX + 1;
 
-       /* gpio + {6,7} is PWM{0,1}, LCD_BACKLIGHT and CHARGER_LED */
-       omap3pandora_bl_gpio.dev.platform_data = (void *) (gpio + 6);
+       /* gpio + 7 is PWM1, CHARGER_LED */
        omap3pandora_gpio_leds[2].gpio = gpio + 7;
 
        return 0;
@@ -366,7 +365,7 @@ static struct platform_device *omap3pandora_devices[] __initdata = {
        &omap3pandora_lcd_device,
        &omap3pandora_leds_gpio,
        &bt_device,
-       &omap3pandora_bl_gpio,
+       &omap3pandora_bl,
 };
 
 static void __init omap3pandora_init(void)