Преглед изворни кода

video: nuc900fb: properly free resources in nuc900fb_remove

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Axel Lin пре 14 година
родитељ
комит
6c9571f4b7
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      drivers/video/nuc900fb.c

+ 2 - 0
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);