diff options
Diffstat (limited to 'drivers/video/bf54x-lq043fb.c')
-rw-r--r-- | drivers/video/bf54x-lq043fb.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/video/bf54x-lq043fb.c b/drivers/video/bf54x-lq043fb.c index 23b2a8c0dbfc..b020ba7f1cf2 100644 --- a/drivers/video/bf54x-lq043fb.c +++ b/drivers/video/bf54x-lq043fb.c | |||
@@ -501,7 +501,9 @@ 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 | #ifndef NO_BL_SUPPORT | ||
504 | struct backlight_properties props; | 505 | struct backlight_properties props; |
506 | #endif | ||
505 | struct bfin_bf54xfb_info *info; | 507 | struct bfin_bf54xfb_info *info; |
506 | struct fb_info *fbinfo; | 508 | struct fb_info *fbinfo; |
507 | int ret; | 509 | int ret; |
@@ -654,7 +656,8 @@ static int __devinit bfin_bf54x_probe(struct platform_device *pdev) | |||
654 | printk(KERN_ERR DRIVER_NAME | 656 | printk(KERN_ERR DRIVER_NAME |
655 | ": unable to register backlight.\n"); | 657 | ": unable to register backlight.\n"); |
656 | ret = -EINVAL; | 658 | ret = -EINVAL; |
657 | goto out9; | 659 | unregister_framebuffer(fbinfo); |
660 | goto out8; | ||
658 | } | 661 | } |
659 | 662 | ||
660 | lcd_dev = lcd_device_register(DRIVER_NAME, &pdev->dev, NULL, &bfin_lcd_ops); | 663 | lcd_dev = lcd_device_register(DRIVER_NAME, &pdev->dev, NULL, &bfin_lcd_ops); |
@@ -663,8 +666,6 @@ static int __devinit bfin_bf54x_probe(struct platform_device *pdev) | |||
663 | 666 | ||
664 | return 0; | 667 | return 0; |
665 | 668 | ||
666 | out9: | ||
667 | unregister_framebuffer(fbinfo); | ||
668 | out8: | 669 | out8: |
669 | free_irq(info->irq, info); | 670 | free_irq(info->irq, info); |
670 | out7: | 671 | out7: |