Skip to content

Commit

Permalink
video: da8xx-fb: fix fb_probe error path
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Paul Mundt <[email protected]>
  • Loading branch information
AxelLin authored and pmundt committed Jan 25, 2011
1 parent 0b7f1cc commit 360c202
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/video/da8xx-fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 360c202

Please sign in to comment.