Commit d11991cb authored by Mike Frysinger's avatar Mike Frysinger Committed by Linus Torvalds

fbdev: bfin-t350mcqb-fb: avoid unused warnings in backlight code

The current backlight code is stubbed out, so the new props changes added
some warnings about unused label/prop.
Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent a51faabc
...@@ -420,7 +420,9 @@ static irqreturn_t bfin_t350mcqb_irq_error(int irq, void *dev_id) ...@@ -420,7 +420,9 @@ static irqreturn_t bfin_t350mcqb_irq_error(int irq, void *dev_id)
static int __devinit bfin_t350mcqb_probe(struct platform_device *pdev) static int __devinit bfin_t350mcqb_probe(struct platform_device *pdev)
{ {
#ifndef NO_BL_SUPPORT
struct backlight_properties props; struct backlight_properties props;
#endif
struct bfin_t350mcqbfb_info *info; struct bfin_t350mcqbfb_info *info;
struct fb_info *fbinfo; struct fb_info *fbinfo;
int ret; int ret;
...@@ -550,7 +552,8 @@ static int __devinit bfin_t350mcqb_probe(struct platform_device *pdev) ...@@ -550,7 +552,8 @@ static int __devinit bfin_t350mcqb_probe(struct platform_device *pdev)
printk(KERN_ERR DRIVER_NAME printk(KERN_ERR DRIVER_NAME
": unable to register backlight.\n"); ": unable to register backlight.\n");
ret = -EINVAL; ret = -EINVAL;
goto out9; unregister_framebuffer(fbinfo);
goto out8;
} }
lcd_dev = lcd_device_register(DRIVER_NAME, NULL, &bfin_lcd_ops); lcd_dev = lcd_device_register(DRIVER_NAME, NULL, &bfin_lcd_ops);
...@@ -559,8 +562,6 @@ static int __devinit bfin_t350mcqb_probe(struct platform_device *pdev) ...@@ -559,8 +562,6 @@ static int __devinit bfin_t350mcqb_probe(struct platform_device *pdev)
return 0; return 0;
out9:
unregister_framebuffer(fbinfo);
out8: out8:
free_irq(info->irq, info); free_irq(info->irq, info);
out7: out7:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment