diff options
Diffstat (limited to 'drivers/video/bf54x-lq043fb.c')
-rw-r--r-- | drivers/video/bf54x-lq043fb.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/video/bf54x-lq043fb.c b/drivers/video/bf54x-lq043fb.c index 814312a7452f..54df3d44af8f 100644 --- a/drivers/video/bf54x-lq043fb.c +++ b/drivers/video/bf54x-lq043fb.c | |||
@@ -501,6 +501,7 @@ static irqreturn_t bfin_bf54x_irq_error(int irq, void *dev_id) | |||
501 | 501 | ||
502 | static int __devinit bfin_bf54x_probe(struct platform_device *pdev) | 502 | static int __devinit bfin_bf54x_probe(struct platform_device *pdev) |
503 | { | 503 | { |
504 | struct backlight_properties props; | ||
504 | struct bfin_bf54xfb_info *info; | 505 | struct bfin_bf54xfb_info *info; |
505 | struct fb_info *fbinfo; | 506 | struct fb_info *fbinfo; |
506 | int ret; | 507 | int ret; |
@@ -645,10 +646,10 @@ static int __devinit bfin_bf54x_probe(struct platform_device *pdev) | |||
645 | goto out8; | 646 | goto out8; |
646 | } | 647 | } |
647 | #ifndef NO_BL_SUPPORT | 648 | #ifndef NO_BL_SUPPORT |
648 | bl_dev = | 649 | memset(&props, 0, sizeof(struct backlight_properties)); |
649 | backlight_device_register("bf54x-bl", NULL, NULL, | 650 | props.max_brightness = 255; |
650 | &bfin_lq043fb_bl_ops); | 651 | bl_dev = backlight_device_register("bf54x-bl", NULL, NULL, |
651 | bl_dev->props.max_brightness = 255; | 652 | &bfin_lq043fb_bl_ops, &props); |
652 | 653 | ||
653 | lcd_dev = lcd_device_register(DRIVER_NAME, &pdev->dev, NULL, &bfin_lcd_ops); | 654 | lcd_dev = lcd_device_register(DRIVER_NAME, &pdev->dev, NULL, &bfin_lcd_ops); |
654 | lcd_dev->props.max_contrast = 255, printk(KERN_INFO "Done.\n"); | 655 | lcd_dev->props.max_contrast = 255, printk(KERN_INFO "Done.\n"); |