video: nuc900fb: properly free resources in nuc900fb_remove
authorAxel Lin <axel.lin@gmail.com>
Mon, 17 Jan 2011 08:25:57 +0000 (16:25 +0800)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 18 Jan 2011 04:38:06 +0000 (13:38 +0900)
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/video/nuc900fb.c

index 29ef92f97f0cb1bd1f7f312eef86318a187b87cb..f838d9e277f05e4fb5c9ee724d1f028a560e07a2 100644 (file)
@@ -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);