diff options
Diffstat (limited to 'drivers/video/backlight/s6e63m0.c')
-rw-r--r-- | drivers/video/backlight/s6e63m0.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/video/backlight/s6e63m0.c b/drivers/video/backlight/s6e63m0.c index e1803ba23176..694e5aab0d69 100644 --- a/drivers/video/backlight/s6e63m0.c +++ b/drivers/video/backlight/s6e63m0.c | |||
@@ -738,6 +738,7 @@ static int __devinit s6e63m0_probe(struct spi_device *spi) | |||
738 | struct s6e63m0 *lcd = NULL; | 738 | struct s6e63m0 *lcd = NULL; |
739 | struct lcd_device *ld = NULL; | 739 | struct lcd_device *ld = NULL; |
740 | struct backlight_device *bd = NULL; | 740 | struct backlight_device *bd = NULL; |
741 | struct backlight_properties props; | ||
741 | 742 | ||
742 | lcd = kzalloc(sizeof(struct s6e63m0), GFP_KERNEL); | 743 | lcd = kzalloc(sizeof(struct s6e63m0), GFP_KERNEL); |
743 | if (!lcd) | 744 | if (!lcd) |
@@ -769,16 +770,18 @@ static int __devinit s6e63m0_probe(struct spi_device *spi) | |||
769 | 770 | ||
770 | lcd->ld = ld; | 771 | lcd->ld = ld; |
771 | 772 | ||
773 | memset(&props, 0, sizeof(struct backlight_properties)); | ||
774 | props.type = BACKLIGHT_RAW; | ||
775 | props.max_brightness = MAX_BRIGHTNESS; | ||
776 | |||
772 | bd = backlight_device_register("s6e63m0bl-bl", &spi->dev, lcd, | 777 | bd = backlight_device_register("s6e63m0bl-bl", &spi->dev, lcd, |
773 | &s6e63m0_backlight_ops, NULL); | 778 | &s6e63m0_backlight_ops, &props); |
774 | if (IS_ERR(bd)) { | 779 | if (IS_ERR(bd)) { |
775 | ret = PTR_ERR(bd); | 780 | ret = PTR_ERR(bd); |
776 | goto out_lcd_unregister; | 781 | goto out_lcd_unregister; |
777 | } | 782 | } |
778 | 783 | ||
779 | bd->props.max_brightness = MAX_BRIGHTNESS; | ||
780 | bd->props.brightness = MAX_BRIGHTNESS; | 784 | bd->props.brightness = MAX_BRIGHTNESS; |
781 | bd->props.type = BACKLIGHT_RAW; | ||
782 | lcd->bd = bd; | 785 | lcd->bd = bd; |
783 | 786 | ||
784 | /* | 787 | /* |