summaryrefslogtreecommitdiff
path: root/drivers/video/stifb.c
diff options
context:
space:
mode:
authorKrzysztof Helt <krzysztof.h1@wp.pl>2009-06-16 15:34:36 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2009-06-16 19:48:00 -0700
commit491bcc9bf5d9a57f2d9cb3ce8ba0f6d48752c113 (patch)
treec0ef0205d06fd5c09dff1ee8dcec40e2ad28c9df /drivers/video/stifb.c
parentf73323de5a07e2a7bf3e9bca36dcc8057e5446d4 (diff)
downloadlinux-3.10-491bcc9bf5d9a57f2d9cb3ce8ba0f6d48752c113.tar.gz
linux-3.10-491bcc9bf5d9a57f2d9cb3ce8ba0f6d48752c113.tar.bz2
linux-3.10-491bcc9bf5d9a57f2d9cb3ce8ba0f6d48752c113.zip
fbdev: use framebuffer_release() for freeing fb_info structures
Use the framebuffer_release() for freeing fb_info structures allocated with framebuffer_alloc(). Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/stifb.c')
-rw-r--r--drivers/video/stifb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/stifb.c b/drivers/video/stifb.c
index eabaad765ae..eec9dcb7f59 100644
--- a/drivers/video/stifb.c
+++ b/drivers/video/stifb.c
@@ -1380,7 +1380,7 @@ stifb_cleanup(void)
if (info->screen_base)
iounmap(info->screen_base);
fb_dealloc_cmap(&info->cmap);
- kfree(info);
+ framebuffer_release(info);
}
sti->info = NULL;
}