summaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorEmil Goode <emilgoode@gmail.com>2014-06-20 23:50:37 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2014-06-24 10:55:02 +0300
commitc80a39d677fe23bb06ec1b93ab3ad452e3b55076 (patch)
tree35d8a56f9f0aae627c1f46bc357aa9f31d4fe1a9 /drivers/video
parent6a902305936b056c6d2467d6c3efdb2a889c3702 (diff)
downloadop-kernel-dev-c80a39d677fe23bb06ec1b93ab3ad452e3b55076.zip
op-kernel-dev-c80a39d677fe23bb06ec1b93ab3ad452e3b55076.tar.gz
video: vt8500lcdfb: Remove kfree call since devm_kzalloc() is used
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>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/fbdev/vt8500lcdfb.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/video/fbdev/vt8500lcdfb.c b/drivers/video/fbdev/vt8500lcdfb.c
index a8f2b28..a1134c3 100644
--- 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;
}
OpenPOWER on IntegriCloud