diff options
author | Jingoo Han | 2011-06-09 04:26:31 +0000 |
---|---|---|
committer | Paul Mundt | 2011-06-09 14:59:48 +0900 |
commit | 72ba4cb608e7937792f3d61349ef616bbffda832 (patch) | |
tree | dbcb54aebc5b59a99ce9924eb26babb589640f33 /drivers/video/s3c-fb.c | |
parent | 06e86849cf4019945a106913adb9ff0abcc01770 (diff) |
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/s3c-fb.c')
-rw-r--r-- | drivers/video/s3c-fb.c | 3 |
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; } |