projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bc8cad
)
video: vt8500lcdfb: Remove kfree call since devm_kzalloc() is used
author
Emil Goode
<emilgoode@gmail.com>
Fri, 20 Jun 2014 21:50:37 +0000
(23:50 +0200)
committer
Tomi Valkeinen
<tomi.valkeinen@ti.com>
Thu, 26 Jun 2014 11:40:07 +0000
(14:40 +0300)
We use devm_kzalloc() to allocate memory for the struct vt8500lcd_info
pointer fbi, so there is no need to free it in vt8500lcd_remove().
Signed-off-by: Emil Goode <emilgoode@gmail.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/fbdev/vt8500lcdfb.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/video/fbdev/vt8500lcdfb.c
b/drivers/video/fbdev/vt8500lcdfb.c
index a8f2b280f796337df10aa430688f859bdf47b12f..a1134c3f6c116cbfa605f9888856c435c9e284d2 100644
(file)
--- a/
drivers/video/fbdev/vt8500lcdfb.c
+++ b/
drivers/video/fbdev/vt8500lcdfb.c
@@
-474,8
+474,6
@@
static int vt8500lcd_remove(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
release_mem_region(res->start, resource_size(res));
- kfree(fbi);
-
return 0;
}