summaryrefslogtreecommitdiffstats
path: root/drivers/video/da8xx-fb.c
diff options
context:
space:
mode:
authoraxel lin <axel.lin@gmail.com>2011-01-20 04:50:51 +0100
committerPaul Mundt <lethal@linux-sh.org>2011-01-25 07:09:13 +0100
commit360c202bebfecbedb129c07361ae8a738552eae3 (patch)
tree9e1e931ee17e35362e2b429fbdcf2c993f5322ff /drivers/video/da8xx-fb.c
parentvideo: pxa3xx-gcu: Return -EFAULT when copy_from_user() fails (diff)
downloadlinux-360c202bebfecbedb129c07361ae8a738552eae3.tar.xz
linux-360c202bebfecbedb129c07361ae8a738552eae3.zip
video: da8xx-fb: fix fb_probe error path
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>
Diffstat (limited to 'drivers/video/da8xx-fb.c')
-rw-r--r--drivers/video/da8xx-fb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c
index c265aed09e04..520047ac6e3e 100644
--- a/drivers/video/da8xx-fb.c
+++ b/drivers/video/da8xx-fb.c
@@ -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);