aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/arizona-micsupp.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2014-02-18 05:41:10 -0500
committerMark Brown <broonie@linaro.org>2014-02-19 11:37:59 -0500
commit820cd31e3682720eef787e853b15fa41548b6508 (patch)
tree533eb59eac79085bdffe9de3b7998e51c828f3de /drivers/regulator/arizona-micsupp.c
parentf4a6c5b41ced4737c6b811e295d947a76a41262a (diff)
regulator: arizona-micsupp: Remove redundant error message
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>
Diffstat (limited to 'drivers/regulator/arizona-micsupp.c')
-rw-r--r--drivers/regulator/arizona-micsupp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/regulator/arizona-micsupp.c b/drivers/regulator/arizona-micsupp.c
index 034ece707083..6fdd9bf6927f 100644
--- a/drivers/regulator/arizona-micsupp.c
+++ b/drivers/regulator/arizona-micsupp.c
@@ -204,10 +204,8 @@ static int arizona_micsupp_probe(struct platform_device *pdev)
204 int ret; 204 int ret;
205 205
206 micsupp = devm_kzalloc(&pdev->dev, sizeof(*micsupp), GFP_KERNEL); 206 micsupp = devm_kzalloc(&pdev->dev, sizeof(*micsupp), GFP_KERNEL);
207 if (micsupp == NULL) { 207 if (!micsupp)
208 dev_err(&pdev->dev, "Unable to allocate private data\n");
209 return -ENOMEM; 208 return -ENOMEM;
210 }
211 209
212 micsupp->arizona = arizona; 210 micsupp->arizona = arizona;
213 INIT_WORK(&micsupp->check_cp_work, arizona_micsupp_check_cp); 211 INIT_WORK(&micsupp->check_cp_work, arizona_micsupp_check_cp);