video: da8xx-fb: fix fb_probe error path
authoraxel lin <axel.lin@gmail.com>
Thu, 20 Jan 2011 03:50:51 +0000 (03:50 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 25 Jan 2011 06:09:13 +0000 (15:09 +0900)
Current implementation puts CONFIG_CPU_FREQ at wrong place, CONFIG_CPU_FREQ
is for lcd_da8xx_cpufreq_deregister not for unregister_framebuffer.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/video/da8xx-fb.c

index c265aed09e04a2061ca224dd4354ffd178d9ccdc..520047ac6e3ebd6504f8fac8ef6ad8f26ee92ea0 100644 (file)
@@ -1092,9 +1092,10 @@ static int __init fb_probe(struct platform_device *device)
 
 irq_freq:
 #ifdef CONFIG_CPU_FREQ
+       lcd_da8xx_cpufreq_deregister(par);
+#endif
 err_cpu_freq:
        unregister_framebuffer(da8xx_fb_info);
-#endif
 
 err_dealloc_cmap:
        fb_dealloc_cmap(&da8xx_fb_info->cmap);