diff mbox

[2/2] video: nuc900fb: properly free resources in nuc900fb_remove

Message ID 1295253222.12890.4.camel@mola (mailing list archive)
State Accepted
Commit 6c9571f4b759717e1c938cbc6b53ec8ce5813245
Headers show

Commit Message

axel lin Jan. 17, 2011, 8:33 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/video/nuc900fb.c b/drivers/video/nuc900fb.c
index 29ef92f..f838d9e 100644
--- a/drivers/video/nuc900fb.c
+++ b/drivers/video/nuc900fb.c
@@ -696,6 +696,8 @@  static int nuc900fb_remove(struct platform_device *pdev)
 	nuc900fb_stop_lcd(fbinfo);
 	msleep(1);
 
+	unregister_framebuffer(fbinfo);
+	nuc900fb_cpufreq_deregister(fbi);
 	nuc900fb_unmap_video_memory(fbinfo);
 
 	iounmap(fbi->io);