projects
/
GitHub
/
LineageOS
/
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:
c61f140
)
regulator: max8907: Remove redundant error message
author
Sachin Kamat
<sachin.kamat@linaro.org>
Thu, 20 Feb 2014 08:53:07 +0000
(14:23 +0530)
committer
Mark Brown
<broonie@linaro.org>
Thu, 20 Feb 2014 11:23:18 +0000
(20:23 +0900)
kzalloc prints its own OOM message upon failure.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/max8907-regulator.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/regulator/max8907-regulator.c
b/drivers/regulator/max8907-regulator.c
index afda8c6af72151a00065723e304cc33f733a48dc..ed90c759c2310e0a21f4bdbcd5116fd551d83261 100644
(file)
--- a/
drivers/regulator/max8907-regulator.c
+++ b/
drivers/regulator/max8907-regulator.c
@@
-292,10
+292,9
@@
static int max8907_regulator_probe(struct platform_device *pdev)
return ret;
pmic = devm_kzalloc(&pdev->dev, sizeof(*pmic), GFP_KERNEL);
- if (!pmic) {
- dev_err(&pdev->dev, "Failed to alloc pmic\n");
+ if (!pmic)
return -ENOMEM;
- }
+
platform_set_drvdata(pdev, pmic);
memcpy(pmic->desc, max8907_regulators, sizeof(pmic->desc));