},
};
-static struct platform_device omap3pandora_bl_gpio = {
- .name = "gpio-backlight",
+static struct platform_device omap3pandora_bl = {
+ .name = "twl4030-pwm0-bl",
.id = -1,
};
/* 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;
&omap3pandora_lcd_device,
&omap3pandora_leds_gpio,
&bt_device,
- &omap3pandora_bl_gpio,
+ &omap3pandora_bl,
};
static void __init omap3pandora_init(void)