aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>2015-02-26 04:13:51 -0500
committerLee Jones <lee.jones@linaro.org>2015-03-03 12:30:26 -0500
commit82a00c49ed97cf5b9aa96bd6cda2021720578ecc (patch)
treed43555f296e30711428c0ce22d673853d1bacff4 /drivers/mfd
parentef9c80b37ad3062d335d4e37846a94d862b5579f (diff)
mfd: sec: Remove unnecessary out of memory message
There is no need to print additional ENOMEM message for sec_platform_data allocation failure. Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/sec-core.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mfd/sec-core.c b/drivers/mfd/sec-core.c
index 423a2d3da4b2..2253d44e631c 100644
--- a/drivers/mfd/sec-core.c
+++ b/drivers/mfd/sec-core.c
@@ -267,10 +267,8 @@ static struct sec_platform_data *sec_pmic_i2c_parse_dt_pdata(
267 struct sec_platform_data *pd; 267 struct sec_platform_data *pd;
268 268
269 pd = devm_kzalloc(dev, sizeof(*pd), GFP_KERNEL); 269 pd = devm_kzalloc(dev, sizeof(*pd), GFP_KERNEL);
270 if (!pd) { 270 if (!pd)
271 dev_err(dev, "could not allocate memory for pdata\n");
272 return ERR_PTR(-ENOMEM); 271 return ERR_PTR(-ENOMEM);
273 }
274 272
275 /* 273 /*
276 * ToDo: the 'wakeup' member in the platform data is more of a linux 274 * ToDo: the 'wakeup' member in the platform data is more of a linux