Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8fc809d1 authored by Mike Frysinger's avatar Mike Frysinger Committed by Linus Torvalds
Browse files

fbdev: bf54x-lq043fb: fix unused warnings with backlight code



The current backlight code is stubbed out, so the new props changes added
some warnings:
drivers/video/bf54x-lq043fb.c: In function 'bfin_bf54x_probe':
drivers/video/bf54x-lq043fb.c:666: warning: label 'out9' defined but not used
drivers/video/bf54x-lq043fb.c:504: warning: unused variable 'props'

Fix em !

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 d11991cb
Loading
Loading
Loading
Loading
+4 −3
Original line number Original line Diff line number Diff line
@@ -501,7 +501,9 @@ static irqreturn_t bfin_bf54x_irq_error(int irq, void *dev_id)


static int __devinit bfin_bf54x_probe(struct platform_device *pdev)
static int __devinit bfin_bf54x_probe(struct platform_device *pdev)
{
{
#ifndef NO_BL_SUPPORT
	struct backlight_properties props;
	struct backlight_properties props;
#endif
	struct bfin_bf54xfb_info *info;
	struct bfin_bf54xfb_info *info;
	struct fb_info *fbinfo;
	struct fb_info *fbinfo;
	int ret;
	int ret;
@@ -654,7 +656,8 @@ static int __devinit bfin_bf54x_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, &pdev->dev, NULL, &bfin_lcd_ops);
	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)


	return 0;
	return 0;


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