diff options
author | Jingoo Han <jg1.han@samsung.com> | 2011-06-09 00:26:31 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-06-09 01:59:48 -0400 |
commit | 72ba4cb608e7937792f3d61349ef616bbffda832 (patch) | |
tree | dbcb54aebc5b59a99ce9924eb26babb589640f33 | |
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>
-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 0352afa49a3..148e19dbdbc 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) | |||
1487 | 1487 | ||
1488 | release_mem_region(sfb->regs_res->start, resource_size(sfb->regs_res)); | 1488 | release_mem_region(sfb->regs_res->start, resource_size(sfb->regs_res)); |
1489 | 1489 | ||
1490 | kfree(sfb); | ||
1491 | |||
1492 | pm_runtime_put_sync(sfb->dev); | 1490 | pm_runtime_put_sync(sfb->dev); |
1493 | pm_runtime_disable(sfb->dev); | 1491 | pm_runtime_disable(sfb->dev); |
1494 | 1492 | ||
1493 | kfree(sfb); | ||
1495 | return 0; | 1494 | return 0; |
1496 | } | 1495 | } |
1497 | 1496 | ||