summaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2011-06-09 04:26:31 +0000
committerPaul Mundt <lethal@linux-sh.org>2011-06-09 14:59:48 +0900
commit72ba4cb608e7937792f3d61349ef616bbffda832 (patch)
treedbcb54aebc5b59a99ce9924eb26babb589640f33 /drivers/video
parent06e86849cf4019945a106913adb9ff0abcc01770 (diff)
downloadlinux-72ba4cb608e7937792f3d61349ef616bbffda832.tar.gz
linux-72ba4cb608e7937792f3d61349ef616bbffda832.tar.bz2
linux-72ba4cb608e7937792f3d61349ef616bbffda832.zip
video: s3c-fb: fix misleading kfree in remove function
This patch fixes misleading kfree in remove function. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/s3c-fb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/s3c-fb.c b/drivers/video/s3c-fb.c
index 0352afa49a39..148e19dbdbc5 100644
--- a/drivers/video/s3c-fb.c
+++ b/drivers/video/s3c-fb.c
@@ -1487,11 +1487,10 @@ static int __devexit s3c_fb_remove(struct platform_device *pdev)
release_mem_region(sfb->regs_res->start, resource_size(sfb->regs_res));
- kfree(sfb);
-
pm_runtime_put_sync(sfb->dev);
pm_runtime_disable(sfb->dev);
+ kfree(sfb);
return 0;
}