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

Commit 360c202b authored by Axel Lin's avatar Axel Lin Committed by Paul Mundt
Browse files

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: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 0b7f1cc7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);