Commit 72ba4cb6 authored by Jingoo Han's avatar Jingoo Han Committed by Paul Mundt

video: s3c-fb: fix misleading kfree in remove function

This patch fixes misleading kfree in remove function.
Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 06e86849
...@@ -1487,11 +1487,10 @@ static int __devexit s3c_fb_remove(struct platform_device *pdev) ...@@ -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)); release_mem_region(sfb->regs_res->start, resource_size(sfb->regs_res));
kfree(sfb);
pm_runtime_put_sync(sfb->dev); pm_runtime_put_sync(sfb->dev);
pm_runtime_disable(sfb->dev); pm_runtime_disable(sfb->dev);
kfree(sfb);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment