Skip to content

Commit

Permalink
fbdev: bfin-t350mcqb-fb: avoid unused warnings in backlight code
Browse files Browse the repository at this point in the history
The current backlight code is stubbed out, so the new props changes added
some warnings about unused label/prop.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Mike Frysinger authored and Linus Torvalds committed May 27, 2010
1 parent a51faab commit d11991c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions drivers/video/bfin-t350mcqb-fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
#ifndef NO_BL_SUPPORT
struct backlight_properties props;
#endif
struct bfin_t350mcqbfb_info *info;
struct fb_info *fbinfo;
int ret;
Expand Down Expand Up @@ -550,7 +552,8 @@ static int __devinit bfin_t350mcqb_probe(struct platform_device *pdev)
printk(KERN_ERR DRIVER_NAME
": unable to register backlight.\n");
ret = -EINVAL;
goto out9;
unregister_framebuffer(fbinfo);
goto out8;
}

lcd_dev = lcd_device_register(DRIVER_NAME, NULL, &bfin_lcd_ops);
Expand All @@ -559,8 +562,6 @@ static int __devinit bfin_t350mcqb_probe(struct platform_device *pdev)

return 0;

out9:
unregister_framebuffer(fbinfo);
out8:
free_irq(info->irq, info);
out7:
Expand Down

0 comments on commit d11991c

Please sign in to comment.