diff options
author | Emil Goode <emilgoode@gmail.com> | 2014-06-20 23:50:37 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2014-06-26 13:40:07 +0200 |
commit | 74c0554ac79ef5aecfeb087bc08771363b221c99 (patch) | |
tree | d93b5566d12c6f55387029727ca2308013da1230 /drivers/video/fbdev/vt8500lcdfb.c | |
parent | drivers:video:fbdev atmel_lcdfb.c power GPIO registration bug (diff) | |
download | linux-74c0554ac79ef5aecfeb087bc08771363b221c99.tar.xz linux-74c0554ac79ef5aecfeb087bc08771363b221c99.zip |
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/fbdev/vt8500lcdfb.c')
-rw-r--r-- | drivers/video/fbdev/vt8500lcdfb.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/video/fbdev/vt8500lcdfb.c b/drivers/video/fbdev/vt8500lcdfb.c index a8f2b280f796..a1134c3f6c11 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; } |