diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-05-26 17:42:30 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-27 12:12:42 -0400 |
commit | d11991cbacaa9283de2b6e362e7ec5f21bc40044 (patch) | |
tree | 2048b0b67d2ece46aa03bb0f561bbe4f76a9fa50 /drivers/video/bfin-t350mcqb-fb.c | |
parent | a51faabc666c054cb2d983fcd5152aa6d0b80604 (diff) |
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: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/bfin-t350mcqb-fb.c')
-rw-r--r-- | drivers/video/bfin-t350mcqb-fb.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/video/bfin-t350mcqb-fb.c b/drivers/video/bfin-t350mcqb-fb.c index c2ec3dcd4e91..7a50272eaab9 100644 --- a/drivers/video/bfin-t350mcqb-fb.c +++ b/drivers/video/bfin-t350mcqb-fb.c | |||
@@ -420,7 +420,9 @@ static irqreturn_t bfin_t350mcqb_irq_error(int irq, void *dev_id) | |||
420 | 420 | ||
421 | static int __devinit bfin_t350mcqb_probe(struct platform_device *pdev) | 421 | static int __devinit bfin_t350mcqb_probe(struct platform_device *pdev) |
422 | { | 422 | { |
423 | #ifndef NO_BL_SUPPORT | ||
423 | struct backlight_properties props; | 424 | struct backlight_properties props; |
425 | #endif | ||
424 | struct bfin_t350mcqbfb_info *info; | 426 | struct bfin_t350mcqbfb_info *info; |
425 | struct fb_info *fbinfo; | 427 | struct fb_info *fbinfo; |
426 | int ret; | 428 | int ret; |
@@ -550,7 +552,8 @@ static int __devinit bfin_t350mcqb_probe(struct platform_device *pdev) | |||
550 | printk(KERN_ERR DRIVER_NAME | 552 | printk(KERN_ERR DRIVER_NAME |
551 | ": unable to register backlight.\n"); | 553 | ": unable to register backlight.\n"); |
552 | ret = -EINVAL; | 554 | ret = -EINVAL; |
553 | goto out9; | 555 | unregister_framebuffer(fbinfo); |
556 | goto out8; | ||
554 | } | 557 | } |
555 | 558 | ||
556 | lcd_dev = lcd_device_register(DRIVER_NAME, NULL, &bfin_lcd_ops); | 559 | 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 | 562 | ||
560 | return 0; | 563 | return 0; |
561 | 564 | ||
562 | out9: | ||
563 | unregister_framebuffer(fbinfo); | ||
564 | out8: | 565 | out8: |
565 | free_irq(info->irq, info); | 566 | free_irq(info->irq, info); |
566 | out7: | 567 | out7: |