Skip to content

Commit

Permalink
video: nuc900fb: properly free resources in nuc900fb_remove
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Axel Lin authored and Paul Mundt committed Jan 18, 2011
1 parent d10df50 commit 6c9571f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/video/nuc900fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6c9571f

Please sign in to comment.