video: da8xx-fb: Fix build warning on unused label
authorManjunathappa, Prakash <prakash.pm@ti.com>
Mon, 10 Oct 2011 06:10:55 +0000 (11:40 +0530)
committerVaibhav Hiremath <hvaibhav@ti.com>
Mon, 23 Jan 2012 19:14:28 +0000 (00:44 +0530)
Patch fixes build warning on label "err_cpu_freq" when CONFIG_CPU_FREQ
is not defined.

Signed-off-by: Manjunathappa, Prakash <prakash.pm@ti.com>
Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
drivers/video/da8xx-fb.c

index c3432a8989dbeec57f2a5a63661a4fcd661d3fca..7bb1c1634be40b175a8a6bdacbb24255316dd358 100644 (file)
@@ -1422,8 +1422,8 @@ static int __devinit fb_probe(struct platform_device *device)
 irq_freq:
 #ifdef CONFIG_CPU_FREQ
        lcd_da8xx_cpufreq_deregister(par);
-#endif
 err_cpu_freq:
+#endif
        unregister_framebuffer(da8xx_fb_info);
 
 err_dealloc_cmap: