projects
/
profile
/
common
/
kernel-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16e1974
)
drm/exynos: Use devm_kzalloc in exynos_drm_vidi.c file
author
Sachin Kamat
<sachin.kamat@linaro.org>
Mon, 6 Aug 2012 06:46:18 +0000
(12:16 +0530)
committer
Inki Dae
<inki.dae@samsung.com>
Thu, 13 Sep 2012 03:38:07 +0000
(12:38 +0900)
devm_kzalloc is a device managed function and makes freeing and error
handling simpler.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_vidi.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/exynos/exynos_drm_vidi.c
b/drivers/gpu/drm/exynos/exynos_drm_vidi.c
index
bb1550c
..
537027a
100644
(file)
--- a/
drivers/gpu/drm/exynos/exynos_drm_vidi.c
+++ b/
drivers/gpu/drm/exynos/exynos_drm_vidi.c
@@
-633,7
+633,7
@@
static int __devinit vidi_probe(struct platform_device *pdev)
DRM_DEBUG_KMS("%s\n", __FILE__);
- ctx =
kzalloc(
sizeof(*ctx), GFP_KERNEL);
+ ctx =
devm_kzalloc(&pdev->dev,
sizeof(*ctx), GFP_KERNEL);
if (!ctx)
return -ENOMEM;
@@
-673,8
+673,6
@@
static int __devexit vidi_remove(struct platform_device *pdev)
ctx->raw_edid = NULL;
}
- kfree(ctx);
-
return 0;
}