projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bba0782
)
mfd: pcf50633-adc: Use devm_*() functions
author
Jingoo Han
<jg1.han@samsung.com>
Tue, 20 Aug 2013 07:05:29 +0000
(16:05 +0900)
committer
Lee Jones
<lee.jones@linaro.org>
Tue, 20 Aug 2013 08:27:35 +0000
(09:27 +0100)
Use devm_*() functions to make cleanup paths simpler.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/pcf50633-adc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mfd/pcf50633-adc.c
b/drivers/mfd/pcf50633-adc.c
index 18b53cb72feae4984b44b6cea94c2f6d68fc3e40..b8941a556d7195e884e1f85d3e7017e89275a3f5 100644
(file)
--- a/
drivers/mfd/pcf50633-adc.c
+++ b/
drivers/mfd/pcf50633-adc.c
@@
-203,7
+203,7
@@
static int pcf50633_adc_probe(struct platform_device *pdev)
{
struct pcf50633_adc *adc;
- adc =
kzalloc(
sizeof(*adc), GFP_KERNEL);
+ adc =
devm_kzalloc(&pdev->dev,
sizeof(*adc), GFP_KERNEL);
if (!adc)
return -ENOMEM;
@@
-236,7
+236,6
@@
static int pcf50633_adc_remove(struct platform_device *pdev)
kfree(adc->queue[i]);
mutex_unlock(&adc->queue_mutex);
- kfree(adc);
return 0;
}