diff options
Diffstat (limited to 'drivers/video/backlight/cr_bllcd.c')
-rw-r--r-- | drivers/video/backlight/cr_bllcd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/video/backlight/cr_bllcd.c b/drivers/video/backlight/cr_bllcd.c index da86db4374a0..1cce6031bff2 100644 --- a/drivers/video/backlight/cr_bllcd.c +++ b/drivers/video/backlight/cr_bllcd.c | |||
@@ -170,6 +170,7 @@ static struct lcd_ops cr_lcd_ops = { | |||
170 | 170 | ||
171 | static int cr_backlight_probe(struct platform_device *pdev) | 171 | static int cr_backlight_probe(struct platform_device *pdev) |
172 | { | 172 | { |
173 | struct backlight_properties props; | ||
173 | struct backlight_device *bdp; | 174 | struct backlight_device *bdp; |
174 | struct lcd_device *ldp; | 175 | struct lcd_device *ldp; |
175 | struct cr_panel *crp; | 176 | struct cr_panel *crp; |
@@ -190,8 +191,9 @@ static int cr_backlight_probe(struct platform_device *pdev) | |||
190 | return -ENODEV; | 191 | return -ENODEV; |
191 | } | 192 | } |
192 | 193 | ||
193 | bdp = backlight_device_register("cr-backlight", | 194 | memset(&props, 0, sizeof(struct backlight_properties)); |
194 | &pdev->dev, NULL, &cr_backlight_ops); | 195 | bdp = backlight_device_register("cr-backlight", &pdev->dev, NULL, |
196 | &cr_backlight_ops, &props); | ||
195 | if (IS_ERR(bdp)) { | 197 | if (IS_ERR(bdp)) { |
196 | pci_dev_put(lpc_dev); | 198 | pci_dev_put(lpc_dev); |
197 | return PTR_ERR(bdp); | 199 | return PTR_ERR(bdp); |
@@ -220,9 +222,7 @@ static int cr_backlight_probe(struct platform_device *pdev) | |||
220 | crp->cr_lcd_device = ldp; | 222 | crp->cr_lcd_device = ldp; |
221 | crp->cr_backlight_device->props.power = FB_BLANK_UNBLANK; | 223 | crp->cr_backlight_device->props.power = FB_BLANK_UNBLANK; |
222 | crp->cr_backlight_device->props.brightness = 0; | 224 | crp->cr_backlight_device->props.brightness = 0; |
223 | crp->cr_backlight_device->props.max_brightness = 0; | ||
224 | cr_backlight_set_intensity(crp->cr_backlight_device); | 225 | cr_backlight_set_intensity(crp->cr_backlight_device); |
225 | |||
226 | cr_lcd_set_power(crp->cr_lcd_device, FB_BLANK_UNBLANK); | 226 | cr_lcd_set_power(crp->cr_lcd_device, FB_BLANK_UNBLANK); |
227 | 227 | ||
228 | platform_set_drvdata(pdev, crp); | 228 | platform_set_drvdata(pdev, crp); |