* [PATCH 01/23] regulator: da9063: Remove redundant error message
@ 2014-02-20 8:53 Sachin Kamat
2014-02-20 8:53 ` [PATCH 02/23] regulator: da9210: " Sachin Kamat
` (22 more replies)
0 siblings, 23 replies; 45+ messages in thread
From: Sachin Kamat @ 2014-02-20 8:53 UTC (permalink / raw)
To: linux-kernel; +Cc: broonie, lgirdwood, sachin.kamat, Krystian Garbaciak
kzalloc prints its own OOM message upon failure.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Krystian Garbaciak <krystian.garbaciak@diasemi.com>
---
drivers/regulator/da9063-regulator.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/regulator/da9063-regulator.c b/drivers/regulator/da9063-regulator.c
index 22ba992e73f2..38ad5e950907 100644
--- a/drivers/regulator/da9063-regulator.c
+++ b/drivers/regulator/da9063-regulator.c
@@ -776,10 +776,8 @@ static int da9063_regulator_probe(struct platform_device *pdev)
size = sizeof(struct da9063_regulators) +
n_regulators * sizeof(struct da9063_regulator);
regulators = devm_kzalloc(&pdev->dev, size, GFP_KERNEL);
- if (!regulators) {
- dev_err(&pdev->dev, "No memory for regulators\n");
+ if (!regulators)
return -ENOMEM;
- }
regulators->n_regulators = n_regulators;
platform_set_drvdata(pdev, regulators);
--
1.7.9.5
^ permalink raw reply [flat|nested] 45+ messages in thread
* [PATCH 02/23] regulator: da9210: Remove redundant error message
2014-02-20 8:53 [PATCH 01/23] regulator: da9063: Remove redundant error message Sachin Kamat
@ 2014-02-20 8:53 ` Sachin Kamat
2014-02-20 10:59 ` Mark Brown
2014-02-20 8:53 ` [PATCH 03/23] regulator: dbx500: " Sachin Kamat
` (21 subsequent siblings)
22 siblings, 1 reply; 45+ messages in thread
From: Sachin Kamat @ 2014-02-20 8:53 UTC (permalink / raw)
To: linux-kernel; +Cc: broonie, lgirdwood, sachin.kamat, S Twiss
kzalloc prints its own OOM message upon failure.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: S Twiss <stwiss.opensource@diasemi.com>
---
drivers/regulator/da9210-regulator.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/regulator/da9210-regulator.c b/drivers/regulator/da9210-regulator.c
index 6f5ecbe1132e..7a320dd11c46 100644
--- a/drivers/regulator/da9210-regulator.c
+++ b/drivers/regulator/da9210-regulator.c
@@ -134,11 +134,8 @@ static int da9210_i2c_probe(struct i2c_client *i2c,
int error;
chip = devm_kzalloc(&i2c->dev, sizeof(struct da9210), GFP_KERNEL);
- if (NULL == chip) {
- dev_err(&i2c->dev,
- "Cannot kzalloc memory for regulator structure\n");
+ if (!chip)
return -ENOMEM;
- }
chip->regmap = devm_regmap_init_i2c(i2c, &da9210_regmap_config);
if (IS_ERR(chip->regmap)) {
--
1.7.9.5
^ permalink raw reply [flat|nested] 45+ messages in thread
* [PATCH 03/23] regulator: dbx500: Remove redundant error message
2014-02-20 8:53 [PATCH 01/23] regulator: da9063: Remove redundant error message Sachin Kamat
2014-02-20 8:53 ` [PATCH 02/23] regulator: da9210: " Sachin Kamat
@ 2014-02-20 8:53 ` Sachin Kamat
2014-02-20 11:20 ` Mark Brown
2014-02-20 8:53 ` [PATCH 04/23] regulator: fan53555: " Sachin Kamat
` (20 subsequent siblings)
22 siblings, 1 reply; 45+ messages in thread
From: Sachin Kamat @ 2014-02-20 8:53 UTC (permalink / raw)
To: linux-kernel; +Cc: broonie, lgirdwood, sachin.kamat, Sundar Iyer
kzalloc prints its own OOM message upon failure.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Sundar Iyer <sundar.iyer@stericsson.com>
---
drivers/regulator/dbx500-prcmu.c | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/drivers/regulator/dbx500-prcmu.c b/drivers/regulator/dbx500-prcmu.c
index ce89f7848a57..f111dfb8d2d7 100644
--- a/drivers/regulator/dbx500-prcmu.c
+++ b/drivers/regulator/dbx500-prcmu.c
@@ -202,18 +202,12 @@ ux500_regulator_debug_init(struct platform_device *pdev,
rdebug.num_regulators = num_regulators;
rdebug.state_before_suspend = kzalloc(num_regulators, GFP_KERNEL);
- if (!rdebug.state_before_suspend) {
- dev_err(&pdev->dev,
- "could not allocate memory for saving state\n");
+ if (!rdebug.state_before_suspend)
goto exit_destroy_power_state;
- }
rdebug.state_after_suspend = kzalloc(num_regulators, GFP_KERNEL);
- if (!rdebug.state_after_suspend) {
- dev_err(&pdev->dev,
- "could not allocate memory for saving state\n");
+ if (!rdebug.state_after_suspend)
goto exit_free;
- }
dbx500_regulator_testcase(regulator_info, num_regulators);
return 0;
--
1.7.9.5
^ permalink raw reply [flat|nested] 45+ messages in thread
* [PATCH 04/23] regulator: fan53555: Remove redundant error message
2014-02-20 8:53 [PATCH 01/23] regulator: da9063: Remove redundant error message Sachin Kamat
2014-02-20 8:53 ` [PATCH 02/23] regulator: da9210: " Sachin Kamat
2014-02-20 8:53 ` [PATCH 03/23] regulator: dbx500: " Sachin Kamat
@ 2014-02-20 8:53 ` Sachin Kamat
2014-02-20 11:21 ` Mark Brown
2014-02-20 8:53 ` [PATCH 05/23] regulator: fixed: " Sachin Kamat
` (19 subsequent siblings)
22 siblings, 1 reply; 45+ messages in thread
From: Sachin Kamat @ 2014-02-20 8:53 UTC (permalink / raw)
To: linux-kernel; +Cc: broonie, lgirdwood, sachin.kamat, Yunfan Zhang
kzalloc prints its own OOM message upon failure.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Yunfan Zhang <yfzhang@marvell.com>
---
drivers/regulator/fan53555.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/regulator/fan53555.c b/drivers/regulator/fan53555.c
index a10df7d150cc..714fd9a89aa1 100644
--- a/drivers/regulator/fan53555.c
+++ b/drivers/regulator/fan53555.c
@@ -244,10 +244,9 @@ static int fan53555_regulator_probe(struct i2c_client *client,
di = devm_kzalloc(&client->dev, sizeof(struct fan53555_device_info),
GFP_KERNEL);
- if (!di) {
- dev_err(&client->dev, "Failed to allocate device info data!\n");
+ if (!di)
return -ENOMEM;
- }
+
di->regmap = devm_regmap_init_i2c(client, &fan53555_regmap_config);
if (IS_ERR(di->regmap)) {
dev_err(&client->dev, "Failed to allocate regmap!\n");
--
1.7.9.5
^ permalink raw reply [flat|nested] 45+ messages in thread
* [PATCH 05/23] regulator: fixed: Remove redundant error message
2014-02-20 8:53 [PATCH 01/23] regulator: da9063: Remove redundant error message Sachin Kamat
` (2 preceding siblings ...)
2014-02-20 8:53 ` [PATCH 04/23] regulator: fan53555: " Sachin Kamat
@ 2014-02-20 8:53 ` Sachin Kamat
2014-02-20 11:23 ` Mark Brown
2014-02-20 8:53 ` [PATCH 06/23] regulator: max77686: " Sachin Kamat
` (18 subsequent siblings)
22 siblings, 1 reply; 45+ messages in thread
From: Sachin Kamat @ 2014-02-20 8:53 UTC (permalink / raw)
To: linux-kernel; +Cc: broonie, lgirdwood, sachin.kamat
kzalloc prints its own OOM message upon failure.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
drivers/regulator/fixed.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/regulator/fixed.c b/drivers/regulator/fixed.c
index 3c307d62fd31..c61f7e97e4f8 100644
--- a/drivers/regulator/fixed.c
+++ b/drivers/regulator/fixed.c
@@ -130,10 +130,8 @@ static int reg_fixed_voltage_probe(struct platform_device *pdev)
drvdata = devm_kzalloc(&pdev->dev, sizeof(struct fixed_voltage_data),
GFP_KERNEL);
- if (drvdata == NULL) {
- dev_err(&pdev->dev, "Failed to allocate device data\n");
+ if (!drvdata)
return -ENOMEM;
- }
drvdata->desc.name = devm_kstrdup(&pdev->dev,
config->supply_name,
--
1.7.9.5
^ permalink raw reply [flat|nested] 45+ messages in thread
* [PATCH 06/23] regulator: max77686: Remove redundant error message
2014-02-20 8:53 [PATCH 01/23] regulator: da9063: Remove redundant error message Sachin Kamat
` (3 preceding siblings ...)
2014-02-20 8:53 ` [PATCH 05/23] regulator: fixed: " Sachin Kamat
@ 2014-02-20 8:53 ` Sachin Kamat
2014-02-20 11:22 ` Mark Brown
2014-02-20 8:53 ` [PATCH 07/23] regulator: max8907: " Sachin Kamat
` (17 subsequent siblings)
22 siblings, 1 reply; 45+ messages in thread
From: Sachin Kamat @ 2014-02-20 8:53 UTC (permalink / raw)
To: linux-kernel; +Cc: broonie, lgirdwood, sachin.kamat
kzalloc prints its own OOM message upon failure.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
drivers/regulator/max77686.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/regulator/max77686.c b/drivers/regulator/max77686.c
index b411af00065d..de020adf0568 100644
--- a/drivers/regulator/max77686.c
+++ b/drivers/regulator/max77686.c
@@ -410,8 +410,6 @@ static int max77686_pmic_dt_parse_pdata(struct platform_device *pdev,
rdata = devm_kzalloc(&pdev->dev, sizeof(*rdata) *
pdata->num_regulators, GFP_KERNEL);
if (!rdata) {
- dev_err(&pdev->dev,
- "could not allocate memory for regulator data\n");
of_node_put(regulators_np);
return -ENOMEM;
}
--
1.7.9.5
^ permalink raw reply [flat|nested] 45+ messages in thread
* [PATCH 07/23] regulator: max8907: Remove redundant error message
2014-02-20 8:53 [PATCH 01/23] regulator: da9063: Remove redundant error message Sachin Kamat
` (4 preceding siblings ...)
2014-02-20 8:53 ` [PATCH 06/23] regulator: max77686: " Sachin Kamat
@ 2014-02-20 8:53 ` Sachin Kamat
2014-02-20 11:23 ` Mark Brown
2014-02-20 8:53 ` [PATCH 08/23] regulator: max8952: " Sachin Kamat
` (16 subsequent siblings)
22 siblings, 1 reply; 45+ messages in thread
From: Sachin Kamat @ 2014-02-20 8:53 UTC (permalink / raw)
To: linux-kernel; +Cc: broonie, lgirdwood, sachin.kamat
kzalloc prints its own OOM message upon failure.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
drivers/regulator/max8907-regulator.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/regulator/max8907-regulator.c b/drivers/regulator/max8907-regulator.c
index afda8c6af721..ed90c759c231 100644
--- 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));
--
1.7.9.5
^ permalink raw reply [flat|nested] 45+ messages in thread
* [PATCH 08/23] regulator: max8952: Remove redundant error message
2014-02-20 8:53 [PATCH 01/23] regulator: da9063: Remove redundant error message Sachin Kamat
` (5 preceding siblings ...)
2014-02-20 8:53 ` [PATCH 07/23] regulator: max8907: " Sachin Kamat
@ 2014-02-20 8:53 ` Sachin Kamat
2014-02-20 11:24 ` Mark Brown
2014-02-20 8:53 ` [PATCH 09/23] regulator: max8997: " Sachin Kamat
` (15 subsequent siblings)
22 siblings, 1 reply; 45+ messages in thread
From: Sachin Kamat @ 2014-02-20 8:53 UTC (permalink / raw)
To: linux-kernel; +Cc: broonie, lgirdwood, sachin.kamat
kzalloc prints its own OOM message upon failure.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
drivers/regulator/max8952.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/regulator/max8952.c b/drivers/regulator/max8952.c
index 788e5ae2af1b..66e777967c69 100644
--- a/drivers/regulator/max8952.c
+++ b/drivers/regulator/max8952.c
@@ -144,10 +144,8 @@ static struct max8952_platform_data *max8952_parse_dt(struct device *dev)
int i;
pd = devm_kzalloc(dev, sizeof(*pd), GFP_KERNEL);
- if (!pd) {
- dev_err(dev, "Failed to allocate platform data\n");
+ if (!pd)
return NULL;
- }
pd->gpio_vid0 = of_get_named_gpio(np, "max8952,vid-gpios", 0);
pd->gpio_vid1 = of_get_named_gpio(np, "max8952,vid-gpios", 1);
--
1.7.9.5
^ permalink raw reply [flat|nested] 45+ messages in thread
* [PATCH 09/23] regulator: max8997: Remove redundant error message
2014-02-20 8:53 [PATCH 01/23] regulator: da9063: Remove redundant error message Sachin Kamat
` (6 preceding siblings ...)
2014-02-20 8:53 ` [PATCH 08/23] regulator: max8952: " Sachin Kamat
@ 2014-02-20 8:53 ` Sachin Kamat
2014-02-20 11:25 ` Mark Brown
2014-02-20 8:53 ` [PATCH 10/23] regulator: rc5t583: " Sachin Kamat
` (14 subsequent siblings)
22 siblings, 1 reply; 45+ messages in thread
From: Sachin Kamat @ 2014-02-20 8:53 UTC (permalink / raw)
To: linux-kernel; +Cc: broonie, lgirdwood, sachin.kamat
kzalloc prints its own OOM message upon failure.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
drivers/regulator/max8997.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/regulator/max8997.c b/drivers/regulator/max8997.c
index 10108f2941e3..f657d8db9c0c 100644
--- a/drivers/regulator/max8997.c
+++ b/drivers/regulator/max8997.c
@@ -937,7 +937,6 @@ static int max8997_pmic_dt_parse_pdata(struct platform_device *pdev,
pdata->num_regulators, GFP_KERNEL);
if (!rdata) {
of_node_put(regulators_np);
- dev_err(&pdev->dev, "could not allocate memory for regulator data\n");
return -ENOMEM;
}
--
1.7.9.5
^ permalink raw reply [flat|nested] 45+ messages in thread
* [PATCH 10/23] regulator: rc5t583: Remove redundant error message
2014-02-20 8:53 [PATCH 01/23] regulator: da9063: Remove redundant error message Sachin Kamat
` (7 preceding siblings ...)
2014-02-20 8:53 ` [PATCH 09/23] regulator: max8997: " Sachin Kamat
@ 2014-02-20 8:53 ` Sachin Kamat
2014-02-20 11:26 ` Mark Brown
2014-02-20 8:53 ` [PATCH 11/23] regulator: s5m8767: " Sachin Kamat
` (13 subsequent siblings)
22 siblings, 1 reply; 45+ messages in thread
From: Sachin Kamat @ 2014-02-20 8:53 UTC (permalink / raw)
To: linux-kernel; +Cc: broonie, lgirdwood, sachin.kamat, Laxman Dewangan
kzalloc prints its own OOM message upon failure.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Laxman Dewangan <ldewangan@nvidia.com>
---
drivers/regulator/rc5t583-regulator.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/regulator/rc5t583-regulator.c b/drivers/regulator/rc5t583-regulator.c
index 22d6fd1281b1..4c414ae109ae 100644
--- a/drivers/regulator/rc5t583-regulator.c
+++ b/drivers/regulator/rc5t583-regulator.c
@@ -134,10 +134,8 @@ static int rc5t583_regulator_probe(struct platform_device *pdev)
regs = devm_kzalloc(&pdev->dev, RC5T583_REGULATOR_MAX *
sizeof(struct rc5t583_regulator), GFP_KERNEL);
- if (!regs) {
- dev_err(&pdev->dev, "Memory allocation failed exiting..\n");
+ if (!regs)
return -ENOMEM;
- }
for (id = 0; id < RC5T583_REGULATOR_MAX; ++id) {
--
1.7.9.5
^ permalink raw reply [flat|nested] 45+ messages in thread
* [PATCH 11/23] regulator: s5m8767: Remove redundant error message
2014-02-20 8:53 [PATCH 01/23] regulator: da9063: Remove redundant error message Sachin Kamat
` (8 preceding siblings ...)
2014-02-20 8:53 ` [PATCH 10/23] regulator: rc5t583: " Sachin Kamat
@ 2014-02-20 8:53 ` Sachin Kamat
2014-02-20 11:49 ` Mark Brown
2014-02-20 8:53 ` [PATCH 12/23] regulator: tps51632: " Sachin Kamat
` (12 subsequent siblings)
22 siblings, 1 reply; 45+ messages in thread
From: Sachin Kamat @ 2014-02-20 8:53 UTC (permalink / raw)
To: linux-kernel; +Cc: broonie, lgirdwood, sachin.kamat, Sangbeom Kim
kzalloc prints its own OOM message upon failure.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Sangbeom Kim <sbkim73@samsung.com>
---
drivers/regulator/s5m8767.c | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/drivers/regulator/s5m8767.c b/drivers/regulator/s5m8767.c
index 4c356b872e6b..342a66ab654a 100644
--- a/drivers/regulator/s5m8767.c
+++ b/drivers/regulator/s5m8767.c
@@ -612,19 +612,13 @@ static int s5m8767_pmic_dt_parse_pdata(struct platform_device *pdev,
rdata = devm_kzalloc(&pdev->dev, sizeof(*rdata) *
pdata->num_regulators, GFP_KERNEL);
- if (!rdata) {
- dev_err(iodev->dev,
- "could not allocate memory for regulator data\n");
+ if (!rdata)
return -ENOMEM;
- }
rmode = devm_kzalloc(&pdev->dev, sizeof(*rmode) *
pdata->num_regulators, GFP_KERNEL);
- if (!rmode) {
- dev_err(iodev->dev,
- "could not allocate memory for regulator mode\n");
+ if (!rmode)
return -ENOMEM;
- }
pdata->regulators = rdata;
pdata->opmode = rmode;
--
1.7.9.5
^ permalink raw reply [flat|nested] 45+ messages in thread
* [PATCH 12/23] regulator: tps51632: Remove redundant error message
2014-02-20 8:53 [PATCH 01/23] regulator: da9063: Remove redundant error message Sachin Kamat
` (9 preceding siblings ...)
2014-02-20 8:53 ` [PATCH 11/23] regulator: s5m8767: " Sachin Kamat
@ 2014-02-20 8:53 ` Sachin Kamat
2014-02-20 11:50 ` Mark Brown
2014-02-20 8:53 ` [PATCH 13/23] regulator: tps62360: " Sachin Kamat
` (11 subsequent siblings)
22 siblings, 1 reply; 45+ messages in thread
From: Sachin Kamat @ 2014-02-20 8:53 UTC (permalink / raw)
To: linux-kernel; +Cc: broonie, lgirdwood, sachin.kamat, Laxman Dewangan
kzalloc prints its own OOM message upon failure.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Laxman Dewangan <ldewangan@nvidia.com>
---
drivers/regulator/tps51632-regulator.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/drivers/regulator/tps51632-regulator.c b/drivers/regulator/tps51632-regulator.c
index b3764f594ee9..f31f22e3e1bd 100644
--- a/drivers/regulator/tps51632-regulator.c
+++ b/drivers/regulator/tps51632-regulator.c
@@ -227,10 +227,8 @@ static struct tps51632_regulator_platform_data *
struct device_node *np = dev->of_node;
pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL);
- if (!pdata) {
- dev_err(dev, "Memory alloc failed for platform data\n");
+ if (!pdata)
return NULL;
- }
pdata->reg_init_data = of_get_regulator_init_data(dev, dev->of_node);
if (!pdata->reg_init_data) {
@@ -299,10 +297,8 @@ static int tps51632_probe(struct i2c_client *client,
}
tps = devm_kzalloc(&client->dev, sizeof(*tps), GFP_KERNEL);
- if (!tps) {
- dev_err(&client->dev, "Memory allocation failed\n");
+ if (!tps)
return -ENOMEM;
- }
tps->dev = &client->dev;
tps->desc.name = client->name;
--
1.7.9.5
^ permalink raw reply [flat|nested] 45+ messages in thread
* [PATCH 13/23] regulator: tps62360: Remove redundant error message
2014-02-20 8:53 [PATCH 01/23] regulator: da9063: Remove redundant error message Sachin Kamat
` (10 preceding siblings ...)
2014-02-20 8:53 ` [PATCH 12/23] regulator: tps51632: " Sachin Kamat
@ 2014-02-20 8:53 ` Sachin Kamat
2014-02-20 11:51 ` Mark Brown
2014-02-20 8:53 ` [PATCH 14/23] regulator: tps6507x: " Sachin Kamat
` (10 subsequent siblings)
22 siblings, 1 reply; 45+ messages in thread
From: Sachin Kamat @ 2014-02-20 8:53 UTC (permalink / raw)
To: linux-kernel; +Cc: broonie, lgirdwood, sachin.kamat, Laxman Dewangan
kzalloc prints its own OOM message upon failure.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Laxman Dewangan <ldewangan@nvidia.com>
---
drivers/regulator/tps62360-regulator.c | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/drivers/regulator/tps62360-regulator.c b/drivers/regulator/tps62360-regulator.c
index c3fa15a299b1..a1672044e519 100644
--- a/drivers/regulator/tps62360-regulator.c
+++ b/drivers/regulator/tps62360-regulator.c
@@ -299,10 +299,8 @@ static struct tps62360_regulator_platform_data *
struct device_node *np = dev->of_node;
pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL);
- if (!pdata) {
- dev_err(dev, "Memory alloc failed for platform data\n");
+ if (!pdata)
return NULL;
- }
pdata->reg_init_data = of_get_regulator_init_data(dev, dev->of_node);
if (!pdata->reg_init_data) {
@@ -377,11 +375,8 @@ static int tps62360_probe(struct i2c_client *client,
}
tps = devm_kzalloc(&client->dev, sizeof(*tps), GFP_KERNEL);
- if (!tps) {
- dev_err(&client->dev, "%s(): Memory allocation failed\n",
- __func__);
+ if (!tps)
return -ENOMEM;
- }
tps->en_discharge = pdata->en_discharge;
tps->en_internal_pulldn = pdata->en_internal_pulldn;
--
1.7.9.5
^ permalink raw reply [flat|nested] 45+ messages in thread
* [PATCH 14/23] regulator: tps6507x: Remove redundant error message
2014-02-20 8:53 [PATCH 01/23] regulator: da9063: Remove redundant error message Sachin Kamat
` (11 preceding siblings ...)
2014-02-20 8:53 ` [PATCH 13/23] regulator: tps62360: " Sachin Kamat
@ 2014-02-20 8:53 ` Sachin Kamat
2014-02-20 11:52 ` Mark Brown
2014-02-20 8:53 ` [PATCH 15/23] regulator: tps65090: " Sachin Kamat
` (9 subsequent siblings)
22 siblings, 1 reply; 45+ messages in thread
From: Sachin Kamat @ 2014-02-20 8:53 UTC (permalink / raw)
To: linux-kernel; +Cc: broonie, lgirdwood, sachin.kamat
kzalloc prints its own OOM message upon failure.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
drivers/regulator/tps6507x-regulator.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/drivers/regulator/tps6507x-regulator.c b/drivers/regulator/tps6507x-regulator.c
index e506e7f54253..98e66ce26723 100644
--- a/drivers/regulator/tps6507x-regulator.c
+++ b/drivers/regulator/tps6507x-regulator.c
@@ -380,10 +380,8 @@ static struct tps6507x_board *tps6507x_parse_dt_reg_data(
tps_board = devm_kzalloc(&pdev->dev, sizeof(*tps_board),
GFP_KERNEL);
- if (!tps_board) {
- dev_err(&pdev->dev, "Failure to alloc pdata for regulators.\n");
+ if (!tps_board)
return NULL;
- }
regulators = of_get_child_by_name(np, "regulators");
if (!regulators) {
@@ -406,10 +404,8 @@ static struct tps6507x_board *tps6507x_parse_dt_reg_data(
reg_data = devm_kzalloc(&pdev->dev, (sizeof(struct regulator_init_data)
* TPS6507X_NUM_REGULATOR), GFP_KERNEL);
- if (!reg_data) {
- dev_err(&pdev->dev, "Failure to alloc init data for regulators.\n");
+ if (!reg_data)
return NULL;
- }
tps_board->tps6507x_pmic_init_data = reg_data;
--
1.7.9.5
^ permalink raw reply [flat|nested] 45+ messages in thread
* [PATCH 15/23] regulator: tps65090: Remove redundant error message
2014-02-20 8:53 [PATCH 01/23] regulator: da9063: Remove redundant error message Sachin Kamat
` (12 preceding siblings ...)
2014-02-20 8:53 ` [PATCH 14/23] regulator: tps6507x: " Sachin Kamat
@ 2014-02-20 8:53 ` Sachin Kamat
2014-02-20 11:54 ` Mark Brown
2014-02-20 8:53 ` [PATCH 16/23] regulator: tps6524x: " Sachin Kamat
` (8 subsequent siblings)
22 siblings, 1 reply; 45+ messages in thread
From: Sachin Kamat @ 2014-02-20 8:53 UTC (permalink / raw)
To: linux-kernel; +Cc: broonie, lgirdwood, sachin.kamat, Venu Byravarasu
kzalloc prints its own OOM message upon failure.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Venu Byravarasu <vbyravarasu@nvidia.com>
---
drivers/regulator/tps65090-regulator.c | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)
diff --git a/drivers/regulator/tps65090-regulator.c b/drivers/regulator/tps65090-regulator.c
index 5674f886c471..2e92ef68574d 100644
--- a/drivers/regulator/tps65090-regulator.c
+++ b/drivers/regulator/tps65090-regulator.c
@@ -168,17 +168,13 @@ static struct tps65090_platform_data *tps65090_parse_dt_reg_data(
tps65090_pdata = devm_kzalloc(&pdev->dev, sizeof(*tps65090_pdata),
GFP_KERNEL);
- if (!tps65090_pdata) {
- dev_err(&pdev->dev, "Memory alloc for tps65090_pdata failed\n");
+ if (!tps65090_pdata)
return ERR_PTR(-ENOMEM);
- }
reg_pdata = devm_kzalloc(&pdev->dev, TPS65090_REGULATOR_MAX *
sizeof(*reg_pdata), GFP_KERNEL);
- if (!reg_pdata) {
- dev_err(&pdev->dev, "Memory alloc for reg_pdata failed\n");
+ if (!reg_pdata)
return ERR_PTR(-ENOMEM);
- }
regulators = of_get_child_by_name(np, "regulators");
if (!regulators) {
@@ -253,10 +249,8 @@ static int tps65090_regulator_probe(struct platform_device *pdev)
pmic = devm_kzalloc(&pdev->dev, TPS65090_REGULATOR_MAX * sizeof(*pmic),
GFP_KERNEL);
- if (!pmic) {
- dev_err(&pdev->dev, "mem alloc for pmic failed\n");
+ if (!pmic)
return -ENOMEM;
- }
for (num = 0; num < TPS65090_REGULATOR_MAX; num++) {
tps_pdata = tps65090_pdata->reg_pdata[num];
--
1.7.9.5
^ permalink raw reply [flat|nested] 45+ messages in thread
* [PATCH 16/23] regulator: tps6524x: Remove redundant error message
2014-02-20 8:53 [PATCH 01/23] regulator: da9063: Remove redundant error message Sachin Kamat
` (13 preceding siblings ...)
2014-02-20 8:53 ` [PATCH 15/23] regulator: tps65090: " Sachin Kamat
@ 2014-02-20 8:53 ` Sachin Kamat
2014-02-20 11:55 ` Mark Brown
2014-02-20 8:53 ` [PATCH 17/23] regulator: tps6586x: " Sachin Kamat
` (7 subsequent siblings)
22 siblings, 1 reply; 45+ messages in thread
From: Sachin Kamat @ 2014-02-20 8:53 UTC (permalink / raw)
To: linux-kernel; +Cc: broonie, lgirdwood, sachin.kamat
kzalloc prints its own OOM message upon failure.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
drivers/regulator/tps6524x-regulator.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/regulator/tps6524x-regulator.c b/drivers/regulator/tps6524x-regulator.c
index 9f6bfda711b7..5b494db9f95c 100644
--- a/drivers/regulator/tps6524x-regulator.c
+++ b/drivers/regulator/tps6524x-regulator.c
@@ -593,10 +593,9 @@ static int pmic_probe(struct spi_device *spi)
}
hw = devm_kzalloc(&spi->dev, sizeof(struct tps6524x), GFP_KERNEL);
- if (!hw) {
- dev_err(dev, "cannot allocate regulator private data\n");
+ if (!hw)
return -ENOMEM;
- }
+
spi_set_drvdata(spi, hw);
memset(hw, 0, sizeof(struct tps6524x));
--
1.7.9.5
^ permalink raw reply [flat|nested] 45+ messages in thread
* [PATCH 17/23] regulator: tps6586x: Remove redundant error message
2014-02-20 8:53 [PATCH 01/23] regulator: da9063: Remove redundant error message Sachin Kamat
` (14 preceding siblings ...)
2014-02-20 8:53 ` [PATCH 16/23] regulator: tps6524x: " Sachin Kamat
@ 2014-02-20 8:53 ` Sachin Kamat
2014-02-20 11:57 ` Mark Brown
2014-02-20 8:53 ` [PATCH 18/23] regulator: tps65910: " Sachin Kamat
` (6 subsequent siblings)
22 siblings, 1 reply; 45+ messages in thread
From: Sachin Kamat @ 2014-02-20 8:53 UTC (permalink / raw)
To: linux-kernel; +Cc: broonie, lgirdwood, sachin.kamat, Mike Rapoport
kzalloc prints its own OOM message upon failure.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Mike Rapoport <mike@compulab.co.il>
---
drivers/regulator/tps6586x-regulator.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/drivers/regulator/tps6586x-regulator.c b/drivers/regulator/tps6586x-regulator.c
index 0485d47f0d8a..e36f3569767f 100644
--- a/drivers/regulator/tps6586x-regulator.c
+++ b/drivers/regulator/tps6586x-regulator.c
@@ -363,10 +363,8 @@ static struct tps6586x_platform_data *tps6586x_parse_regulator_dt(
}
pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL);
- if (!pdata) {
- dev_err(&pdev->dev, "Memory alloction failed\n");
+ if (!pdata)
return NULL;
- }
for (i = 0; i < num; i++) {
int id;
@@ -420,10 +418,8 @@ static int tps6586x_regulator_probe(struct platform_device *pdev)
rdev = devm_kzalloc(&pdev->dev, TPS6586X_ID_MAX_REGULATOR *
sizeof(*rdev), GFP_KERNEL);
- if (!rdev) {
- dev_err(&pdev->dev, "Mmemory alloc failed\n");
+ if (!rdev)
return -ENOMEM;
- }
version = tps6586x_get_version(pdev->dev.parent);
--
1.7.9.5
^ permalink raw reply [flat|nested] 45+ messages in thread
* [PATCH 18/23] regulator: tps65910: Remove redundant error message
2014-02-20 8:53 [PATCH 01/23] regulator: da9063: Remove redundant error message Sachin Kamat
` (15 preceding siblings ...)
2014-02-20 8:53 ` [PATCH 17/23] regulator: tps6586x: " Sachin Kamat
@ 2014-02-20 8:53 ` Sachin Kamat
2014-02-20 12:01 ` Mark Brown
2014-02-20 8:53 ` [PATCH 19/23] regulator: tps80031: " Sachin Kamat
` (5 subsequent siblings)
22 siblings, 1 reply; 45+ messages in thread
From: Sachin Kamat @ 2014-02-20 8:53 UTC (permalink / raw)
To: linux-kernel; +Cc: broonie, lgirdwood, sachin.kamat, Graeme Gregory
kzalloc prints its own OOM message upon failure.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Graeme Gregory <gg@slimlogic.co.uk>
---
drivers/regulator/tps65910-regulator.c | 21 +++++----------------
1 file changed, 5 insertions(+), 16 deletions(-)
diff --git a/drivers/regulator/tps65910-regulator.c b/drivers/regulator/tps65910-regulator.c
index f50dd847eebc..fa7db8847578 100644
--- a/drivers/regulator/tps65910-regulator.c
+++ b/drivers/regulator/tps65910-regulator.c
@@ -1011,11 +1011,8 @@ static struct tps65910_board *tps65910_parse_dt_reg_data(
pmic_plat_data = devm_kzalloc(&pdev->dev, sizeof(*pmic_plat_data),
GFP_KERNEL);
-
- if (!pmic_plat_data) {
- dev_err(&pdev->dev, "Failure to alloc pdata for regulators.\n");
+ if (!pmic_plat_data)
return NULL;
- }
np = of_node_get(pdev->dev.parent->of_node);
regulators = of_get_child_by_name(np, "regulators");
@@ -1098,10 +1095,8 @@ static int tps65910_probe(struct platform_device *pdev)
}
pmic = devm_kzalloc(&pdev->dev, sizeof(*pmic), GFP_KERNEL);
- if (!pmic) {
- dev_err(&pdev->dev, "Memory allocation failed for pmic\n");
+ if (!pmic)
return -ENOMEM;
- }
pmic->mfd = tps65910;
platform_set_drvdata(pdev, pmic);
@@ -1130,24 +1125,18 @@ static int tps65910_probe(struct platform_device *pdev)
pmic->desc = devm_kzalloc(&pdev->dev, pmic->num_regulators *
sizeof(struct regulator_desc), GFP_KERNEL);
- if (!pmic->desc) {
- dev_err(&pdev->dev, "Memory alloc fails for desc\n");
+ if (!pmic->desc)
return -ENOMEM;
- }
pmic->info = devm_kzalloc(&pdev->dev, pmic->num_regulators *
sizeof(struct tps_info *), GFP_KERNEL);
- if (!pmic->info) {
- dev_err(&pdev->dev, "Memory alloc fails for info\n");
+ if (!pmic->info)
return -ENOMEM;
- }
pmic->rdev = devm_kzalloc(&pdev->dev, pmic->num_regulators *
sizeof(struct regulator_dev *), GFP_KERNEL);
- if (!pmic->rdev) {
- dev_err(&pdev->dev, "Memory alloc fails for rdev\n");
+ if (!pmic->rdev)
return -ENOMEM;
- }
for (i = 0; i < pmic->num_regulators && i < TPS65910_NUM_REGS;
i++, info++) {
--
1.7.9.5
^ permalink raw reply [flat|nested] 45+ messages in thread
* [PATCH 19/23] regulator: tps80031: Remove redundant error message
2014-02-20 8:53 [PATCH 01/23] regulator: da9063: Remove redundant error message Sachin Kamat
` (16 preceding siblings ...)
2014-02-20 8:53 ` [PATCH 18/23] regulator: tps65910: " Sachin Kamat
@ 2014-02-20 8:53 ` Sachin Kamat
2014-02-20 12:02 ` Mark Brown
2014-02-20 8:53 ` [PATCH 20/23] regulator: wm831x-dcdc: " Sachin Kamat
` (4 subsequent siblings)
22 siblings, 1 reply; 45+ messages in thread
From: Sachin Kamat @ 2014-02-20 8:53 UTC (permalink / raw)
To: linux-kernel; +Cc: broonie, lgirdwood, sachin.kamat, Laxman Dewangan
kzalloc prints its own OOM message upon failure.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Laxman Dewangan <ldewangan@nvidia.com>
---
drivers/regulator/tps80031-regulator.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/regulator/tps80031-regulator.c b/drivers/regulator/tps80031-regulator.c
index 71f457a42623..ac88c988bb2e 100644
--- a/drivers/regulator/tps80031-regulator.c
+++ b/drivers/regulator/tps80031-regulator.c
@@ -693,10 +693,8 @@ static int tps80031_regulator_probe(struct platform_device *pdev)
pmic = devm_kzalloc(&pdev->dev,
TPS80031_REGULATOR_MAX * sizeof(*pmic), GFP_KERNEL);
- if (!pmic) {
- dev_err(&pdev->dev, "mem alloc for pmic failed\n");
+ if (!pmic)
return -ENOMEM;
- }
for (num = 0; num < TPS80031_REGULATOR_MAX; ++num) {
tps_pdata = pdata->regulator_pdata[num];
--
1.7.9.5
^ permalink raw reply [flat|nested] 45+ messages in thread
* [PATCH 20/23] regulator: wm831x-dcdc: Remove redundant error message
2014-02-20 8:53 [PATCH 01/23] regulator: da9063: Remove redundant error message Sachin Kamat
` (17 preceding siblings ...)
2014-02-20 8:53 ` [PATCH 19/23] regulator: tps80031: " Sachin Kamat
@ 2014-02-20 8:53 ` Sachin Kamat
2014-02-20 12:03 ` Mark Brown
2014-02-20 8:53 ` [PATCH 21/23] regulator: wm831x-isink: " Sachin Kamat
` (3 subsequent siblings)
22 siblings, 1 reply; 45+ messages in thread
From: Sachin Kamat @ 2014-02-20 8:53 UTC (permalink / raw)
To: linux-kernel; +Cc: broonie, lgirdwood, sachin.kamat
kzalloc prints its own OOM message upon failure.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
drivers/regulator/wm831x-dcdc.c | 16 ++++------------
1 file changed, 4 insertions(+), 12 deletions(-)
diff --git a/drivers/regulator/wm831x-dcdc.c b/drivers/regulator/wm831x-dcdc.c
index 04cf9c16ef23..0d88a82ab2a2 100644
--- a/drivers/regulator/wm831x-dcdc.c
+++ b/drivers/regulator/wm831x-dcdc.c
@@ -469,10 +469,8 @@ static int wm831x_buckv_probe(struct platform_device *pdev)
dcdc = devm_kzalloc(&pdev->dev, sizeof(struct wm831x_dcdc),
GFP_KERNEL);
- if (dcdc == NULL) {
- dev_err(&pdev->dev, "Unable to allocate private data\n");
+ if (!dcdc)
return -ENOMEM;
- }
dcdc->wm831x = wm831x;
@@ -622,10 +620,8 @@ static int wm831x_buckp_probe(struct platform_device *pdev)
dcdc = devm_kzalloc(&pdev->dev, sizeof(struct wm831x_dcdc),
GFP_KERNEL);
- if (dcdc == NULL) {
- dev_err(&pdev->dev, "Unable to allocate private data\n");
+ if (!dcdc)
return -ENOMEM;
- }
dcdc->wm831x = wm831x;
@@ -752,10 +748,8 @@ static int wm831x_boostp_probe(struct platform_device *pdev)
return -ENODEV;
dcdc = devm_kzalloc(&pdev->dev, sizeof(struct wm831x_dcdc), GFP_KERNEL);
- if (dcdc == NULL) {
- dev_err(&pdev->dev, "Unable to allocate private data\n");
+ if (!dcdc)
return -ENOMEM;
- }
dcdc->wm831x = wm831x;
@@ -842,10 +836,8 @@ static int wm831x_epe_probe(struct platform_device *pdev)
dev_dbg(&pdev->dev, "Probing EPE%d\n", id + 1);
dcdc = devm_kzalloc(&pdev->dev, sizeof(struct wm831x_dcdc), GFP_KERNEL);
- if (dcdc == NULL) {
- dev_err(&pdev->dev, "Unable to allocate private data\n");
+ if (!dcdc)
return -ENOMEM;
- }
dcdc->wm831x = wm831x;
--
1.7.9.5
^ permalink raw reply [flat|nested] 45+ messages in thread
* [PATCH 21/23] regulator: wm831x-isink: Remove redundant error message
2014-02-20 8:53 [PATCH 01/23] regulator: da9063: Remove redundant error message Sachin Kamat
` (18 preceding siblings ...)
2014-02-20 8:53 ` [PATCH 20/23] regulator: wm831x-dcdc: " Sachin Kamat
@ 2014-02-20 8:53 ` Sachin Kamat
2014-02-20 12:03 ` Mark Brown
2014-02-20 8:53 ` [PATCH 22/23] regulator: wm831x-ldo: " Sachin Kamat
` (2 subsequent siblings)
22 siblings, 1 reply; 45+ messages in thread
From: Sachin Kamat @ 2014-02-20 8:53 UTC (permalink / raw)
To: linux-kernel; +Cc: broonie, lgirdwood, sachin.kamat
kzalloc prints its own OOM message upon failure.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
drivers/regulator/wm831x-isink.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/regulator/wm831x-isink.c b/drivers/regulator/wm831x-isink.c
index 0339b886df5d..72e385e76a9d 100644
--- a/drivers/regulator/wm831x-isink.c
+++ b/drivers/regulator/wm831x-isink.c
@@ -165,10 +165,8 @@ static int wm831x_isink_probe(struct platform_device *pdev)
isink = devm_kzalloc(&pdev->dev, sizeof(struct wm831x_isink),
GFP_KERNEL);
- if (isink == NULL) {
- dev_err(&pdev->dev, "Unable to allocate private data\n");
+ if (!isink)
return -ENOMEM;
- }
isink->wm831x = wm831x;
--
1.7.9.5
^ permalink raw reply [flat|nested] 45+ messages in thread
* [PATCH 22/23] regulator: wm831x-ldo: Remove redundant error message
2014-02-20 8:53 [PATCH 01/23] regulator: da9063: Remove redundant error message Sachin Kamat
` (19 preceding siblings ...)
2014-02-20 8:53 ` [PATCH 21/23] regulator: wm831x-isink: " Sachin Kamat
@ 2014-02-20 8:53 ` Sachin Kamat
2014-02-20 12:04 ` Mark Brown
2014-02-20 8:53 ` [PATCH 23/23] regulator: wm8994: " Sachin Kamat
2014-02-20 10:57 ` [PATCH 01/23] regulator: da9063: " Mark Brown
22 siblings, 1 reply; 45+ messages in thread
From: Sachin Kamat @ 2014-02-20 8:53 UTC (permalink / raw)
To: linux-kernel; +Cc: broonie, lgirdwood, sachin.kamat
kzalloc prints its own OOM message upon failure.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
drivers/regulator/wm831x-ldo.c | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)
diff --git a/drivers/regulator/wm831x-ldo.c b/drivers/regulator/wm831x-ldo.c
index 46d6700467b5..eca0eeb78acd 100644
--- a/drivers/regulator/wm831x-ldo.c
+++ b/drivers/regulator/wm831x-ldo.c
@@ -235,10 +235,8 @@ static int wm831x_gp_ldo_probe(struct platform_device *pdev)
dev_dbg(&pdev->dev, "Probing LDO%d\n", id + 1);
ldo = devm_kzalloc(&pdev->dev, sizeof(struct wm831x_ldo), GFP_KERNEL);
- if (ldo == NULL) {
- dev_err(&pdev->dev, "Unable to allocate private data\n");
+ if (!ldo)
return -ENOMEM;
- }
ldo->wm831x = wm831x;
@@ -447,10 +445,8 @@ static int wm831x_aldo_probe(struct platform_device *pdev)
dev_dbg(&pdev->dev, "Probing LDO%d\n", id + 1);
ldo = devm_kzalloc(&pdev->dev, sizeof(struct wm831x_ldo), GFP_KERNEL);
- if (ldo == NULL) {
- dev_err(&pdev->dev, "Unable to allocate private data\n");
+ if (!ldo)
return -ENOMEM;
- }
ldo->wm831x = wm831x;
@@ -594,10 +590,8 @@ static int wm831x_alive_ldo_probe(struct platform_device *pdev)
dev_dbg(&pdev->dev, "Probing LDO%d\n", id + 1);
ldo = devm_kzalloc(&pdev->dev, sizeof(struct wm831x_ldo), GFP_KERNEL);
- if (ldo == NULL) {
- dev_err(&pdev->dev, "Unable to allocate private data\n");
+ if (!ldo)
return -ENOMEM;
- }
ldo->wm831x = wm831x;
--
1.7.9.5
^ permalink raw reply [flat|nested] 45+ messages in thread
* [PATCH 23/23] regulator: wm8994: Remove redundant error message
2014-02-20 8:53 [PATCH 01/23] regulator: da9063: Remove redundant error message Sachin Kamat
` (20 preceding siblings ...)
2014-02-20 8:53 ` [PATCH 22/23] regulator: wm831x-ldo: " Sachin Kamat
@ 2014-02-20 8:53 ` Sachin Kamat
2014-02-20 10:57 ` [PATCH 01/23] regulator: da9063: " Mark Brown
22 siblings, 0 replies; 45+ messages in thread
From: Sachin Kamat @ 2014-02-20 8:53 UTC (permalink / raw)
To: linux-kernel; +Cc: broonie, lgirdwood, sachin.kamat
kzalloc prints its own OOM message upon failure.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
drivers/regulator/wm8994-regulator.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/regulator/wm8994-regulator.c b/drivers/regulator/wm8994-regulator.c
index 71c5911f2e71..c24346db8a71 100644
--- a/drivers/regulator/wm8994-regulator.c
+++ b/drivers/regulator/wm8994-regulator.c
@@ -134,10 +134,8 @@ static int wm8994_ldo_probe(struct platform_device *pdev)
dev_dbg(&pdev->dev, "Probing LDO%d\n", id + 1);
ldo = devm_kzalloc(&pdev->dev, sizeof(struct wm8994_ldo), GFP_KERNEL);
- if (ldo == NULL) {
- dev_err(&pdev->dev, "Unable to allocate private data\n");
+ if (!ldo)
return -ENOMEM;
- }
ldo->wm8994 = wm8994;
ldo->supply = wm8994_ldo_consumer[id];
--
1.7.9.5
^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: [PATCH 01/23] regulator: da9063: Remove redundant error message
2014-02-20 8:53 [PATCH 01/23] regulator: da9063: Remove redundant error message Sachin Kamat
` (21 preceding siblings ...)
2014-02-20 8:53 ` [PATCH 23/23] regulator: wm8994: " Sachin Kamat
@ 2014-02-20 10:57 ` Mark Brown
22 siblings, 0 replies; 45+ messages in thread
From: Mark Brown @ 2014-02-20 10:57 UTC (permalink / raw)
To: Sachin Kamat; +Cc: linux-kernel, lgirdwood, Krystian Garbaciak
[-- Attachment #1: Type: text/plain, Size: 131 bytes --]
On Thu, Feb 20, 2014 at 02:23:01PM +0530, Sachin Kamat wrote:
> kzalloc prints its own OOM message upon failure.
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: [PATCH 02/23] regulator: da9210: Remove redundant error message
2014-02-20 8:53 ` [PATCH 02/23] regulator: da9210: " Sachin Kamat
@ 2014-02-20 10:59 ` Mark Brown
0 siblings, 0 replies; 45+ messages in thread
From: Mark Brown @ 2014-02-20 10:59 UTC (permalink / raw)
To: Sachin Kamat; +Cc: linux-kernel, lgirdwood, S Twiss
[-- Attachment #1: Type: text/plain, Size: 131 bytes --]
On Thu, Feb 20, 2014 at 02:23:02PM +0530, Sachin Kamat wrote:
> kzalloc prints its own OOM message upon failure.
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: [PATCH 03/23] regulator: dbx500: Remove redundant error message
2014-02-20 8:53 ` [PATCH 03/23] regulator: dbx500: " Sachin Kamat
@ 2014-02-20 11:20 ` Mark Brown
0 siblings, 0 replies; 45+ messages in thread
From: Mark Brown @ 2014-02-20 11:20 UTC (permalink / raw)
To: Sachin Kamat; +Cc: linux-kernel, lgirdwood, Sundar Iyer
[-- Attachment #1: Type: text/plain, Size: 131 bytes --]
On Thu, Feb 20, 2014 at 02:23:03PM +0530, Sachin Kamat wrote:
> kzalloc prints its own OOM message upon failure.
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: [PATCH 04/23] regulator: fan53555: Remove redundant error message
2014-02-20 8:53 ` [PATCH 04/23] regulator: fan53555: " Sachin Kamat
@ 2014-02-20 11:21 ` Mark Brown
0 siblings, 0 replies; 45+ messages in thread
From: Mark Brown @ 2014-02-20 11:21 UTC (permalink / raw)
To: Sachin Kamat; +Cc: linux-kernel, lgirdwood, Yunfan Zhang
[-- Attachment #1: Type: text/plain, Size: 131 bytes --]
On Thu, Feb 20, 2014 at 02:23:04PM +0530, Sachin Kamat wrote:
> kzalloc prints its own OOM message upon failure.
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: [PATCH 06/23] regulator: max77686: Remove redundant error message
2014-02-20 8:53 ` [PATCH 06/23] regulator: max77686: " Sachin Kamat
@ 2014-02-20 11:22 ` Mark Brown
0 siblings, 0 replies; 45+ messages in thread
From: Mark Brown @ 2014-02-20 11:22 UTC (permalink / raw)
To: Sachin Kamat; +Cc: linux-kernel, lgirdwood
[-- Attachment #1: Type: text/plain, Size: 131 bytes --]
On Thu, Feb 20, 2014 at 02:23:06PM +0530, Sachin Kamat wrote:
> kzalloc prints its own OOM message upon failure.
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: [PATCH 05/23] regulator: fixed: Remove redundant error message
2014-02-20 8:53 ` [PATCH 05/23] regulator: fixed: " Sachin Kamat
@ 2014-02-20 11:23 ` Mark Brown
0 siblings, 0 replies; 45+ messages in thread
From: Mark Brown @ 2014-02-20 11:23 UTC (permalink / raw)
To: Sachin Kamat; +Cc: linux-kernel, lgirdwood
[-- Attachment #1: Type: text/plain, Size: 131 bytes --]
On Thu, Feb 20, 2014 at 02:23:05PM +0530, Sachin Kamat wrote:
> kzalloc prints its own OOM message upon failure.
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: [PATCH 07/23] regulator: max8907: Remove redundant error message
2014-02-20 8:53 ` [PATCH 07/23] regulator: max8907: " Sachin Kamat
@ 2014-02-20 11:23 ` Mark Brown
0 siblings, 0 replies; 45+ messages in thread
From: Mark Brown @ 2014-02-20 11:23 UTC (permalink / raw)
To: Sachin Kamat; +Cc: linux-kernel, lgirdwood
[-- Attachment #1: Type: text/plain, Size: 131 bytes --]
On Thu, Feb 20, 2014 at 02:23:07PM +0530, Sachin Kamat wrote:
> kzalloc prints its own OOM message upon failure.
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: [PATCH 08/23] regulator: max8952: Remove redundant error message
2014-02-20 8:53 ` [PATCH 08/23] regulator: max8952: " Sachin Kamat
@ 2014-02-20 11:24 ` Mark Brown
0 siblings, 0 replies; 45+ messages in thread
From: Mark Brown @ 2014-02-20 11:24 UTC (permalink / raw)
To: Sachin Kamat; +Cc: linux-kernel, lgirdwood
[-- Attachment #1: Type: text/plain, Size: 131 bytes --]
On Thu, Feb 20, 2014 at 02:23:08PM +0530, Sachin Kamat wrote:
> kzalloc prints its own OOM message upon failure.
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: [PATCH 09/23] regulator: max8997: Remove redundant error message
2014-02-20 8:53 ` [PATCH 09/23] regulator: max8997: " Sachin Kamat
@ 2014-02-20 11:25 ` Mark Brown
0 siblings, 0 replies; 45+ messages in thread
From: Mark Brown @ 2014-02-20 11:25 UTC (permalink / raw)
To: Sachin Kamat; +Cc: linux-kernel, lgirdwood
[-- Attachment #1: Type: text/plain, Size: 131 bytes --]
On Thu, Feb 20, 2014 at 02:23:09PM +0530, Sachin Kamat wrote:
> kzalloc prints its own OOM message upon failure.
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: [PATCH 10/23] regulator: rc5t583: Remove redundant error message
2014-02-20 8:53 ` [PATCH 10/23] regulator: rc5t583: " Sachin Kamat
@ 2014-02-20 11:26 ` Mark Brown
0 siblings, 0 replies; 45+ messages in thread
From: Mark Brown @ 2014-02-20 11:26 UTC (permalink / raw)
To: Sachin Kamat; +Cc: linux-kernel, lgirdwood, Laxman Dewangan
[-- Attachment #1: Type: text/plain, Size: 131 bytes --]
On Thu, Feb 20, 2014 at 02:23:10PM +0530, Sachin Kamat wrote:
> kzalloc prints its own OOM message upon failure.
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: [PATCH 11/23] regulator: s5m8767: Remove redundant error message
2014-02-20 8:53 ` [PATCH 11/23] regulator: s5m8767: " Sachin Kamat
@ 2014-02-20 11:49 ` Mark Brown
0 siblings, 0 replies; 45+ messages in thread
From: Mark Brown @ 2014-02-20 11:49 UTC (permalink / raw)
To: Sachin Kamat; +Cc: linux-kernel, lgirdwood, Sangbeom Kim
[-- Attachment #1: Type: text/plain, Size: 131 bytes --]
On Thu, Feb 20, 2014 at 02:23:11PM +0530, Sachin Kamat wrote:
> kzalloc prints its own OOM message upon failure.
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: [PATCH 12/23] regulator: tps51632: Remove redundant error message
2014-02-20 8:53 ` [PATCH 12/23] regulator: tps51632: " Sachin Kamat
@ 2014-02-20 11:50 ` Mark Brown
0 siblings, 0 replies; 45+ messages in thread
From: Mark Brown @ 2014-02-20 11:50 UTC (permalink / raw)
To: Sachin Kamat; +Cc: linux-kernel, lgirdwood, Laxman Dewangan
[-- Attachment #1: Type: text/plain, Size: 131 bytes --]
On Thu, Feb 20, 2014 at 02:23:12PM +0530, Sachin Kamat wrote:
> kzalloc prints its own OOM message upon failure.
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: [PATCH 13/23] regulator: tps62360: Remove redundant error message
2014-02-20 8:53 ` [PATCH 13/23] regulator: tps62360: " Sachin Kamat
@ 2014-02-20 11:51 ` Mark Brown
0 siblings, 0 replies; 45+ messages in thread
From: Mark Brown @ 2014-02-20 11:51 UTC (permalink / raw)
To: Sachin Kamat; +Cc: linux-kernel, lgirdwood, Laxman Dewangan
[-- Attachment #1: Type: text/plain, Size: 131 bytes --]
On Thu, Feb 20, 2014 at 02:23:13PM +0530, Sachin Kamat wrote:
> kzalloc prints its own OOM message upon failure.
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: [PATCH 14/23] regulator: tps6507x: Remove redundant error message
2014-02-20 8:53 ` [PATCH 14/23] regulator: tps6507x: " Sachin Kamat
@ 2014-02-20 11:52 ` Mark Brown
0 siblings, 0 replies; 45+ messages in thread
From: Mark Brown @ 2014-02-20 11:52 UTC (permalink / raw)
To: Sachin Kamat; +Cc: linux-kernel, lgirdwood
[-- Attachment #1: Type: text/plain, Size: 131 bytes --]
On Thu, Feb 20, 2014 at 02:23:14PM +0530, Sachin Kamat wrote:
> kzalloc prints its own OOM message upon failure.
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: [PATCH 15/23] regulator: tps65090: Remove redundant error message
2014-02-20 8:53 ` [PATCH 15/23] regulator: tps65090: " Sachin Kamat
@ 2014-02-20 11:54 ` Mark Brown
0 siblings, 0 replies; 45+ messages in thread
From: Mark Brown @ 2014-02-20 11:54 UTC (permalink / raw)
To: Sachin Kamat; +Cc: linux-kernel, lgirdwood, Venu Byravarasu
[-- Attachment #1: Type: text/plain, Size: 131 bytes --]
On Thu, Feb 20, 2014 at 02:23:15PM +0530, Sachin Kamat wrote:
> kzalloc prints its own OOM message upon failure.
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: [PATCH 16/23] regulator: tps6524x: Remove redundant error message
2014-02-20 8:53 ` [PATCH 16/23] regulator: tps6524x: " Sachin Kamat
@ 2014-02-20 11:55 ` Mark Brown
0 siblings, 0 replies; 45+ messages in thread
From: Mark Brown @ 2014-02-20 11:55 UTC (permalink / raw)
To: Sachin Kamat; +Cc: linux-kernel, lgirdwood
[-- Attachment #1: Type: text/plain, Size: 131 bytes --]
On Thu, Feb 20, 2014 at 02:23:16PM +0530, Sachin Kamat wrote:
> kzalloc prints its own OOM message upon failure.
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: [PATCH 17/23] regulator: tps6586x: Remove redundant error message
2014-02-20 8:53 ` [PATCH 17/23] regulator: tps6586x: " Sachin Kamat
@ 2014-02-20 11:57 ` Mark Brown
0 siblings, 0 replies; 45+ messages in thread
From: Mark Brown @ 2014-02-20 11:57 UTC (permalink / raw)
To: Sachin Kamat; +Cc: linux-kernel, lgirdwood, Mike Rapoport
[-- Attachment #1: Type: text/plain, Size: 131 bytes --]
On Thu, Feb 20, 2014 at 02:23:17PM +0530, Sachin Kamat wrote:
> kzalloc prints its own OOM message upon failure.
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: [PATCH 18/23] regulator: tps65910: Remove redundant error message
2014-02-20 8:53 ` [PATCH 18/23] regulator: tps65910: " Sachin Kamat
@ 2014-02-20 12:01 ` Mark Brown
0 siblings, 0 replies; 45+ messages in thread
From: Mark Brown @ 2014-02-20 12:01 UTC (permalink / raw)
To: Sachin Kamat; +Cc: linux-kernel, lgirdwood, Graeme Gregory
[-- Attachment #1: Type: text/plain, Size: 131 bytes --]
On Thu, Feb 20, 2014 at 02:23:18PM +0530, Sachin Kamat wrote:
> kzalloc prints its own OOM message upon failure.
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: [PATCH 19/23] regulator: tps80031: Remove redundant error message
2014-02-20 8:53 ` [PATCH 19/23] regulator: tps80031: " Sachin Kamat
@ 2014-02-20 12:02 ` Mark Brown
0 siblings, 0 replies; 45+ messages in thread
From: Mark Brown @ 2014-02-20 12:02 UTC (permalink / raw)
To: Sachin Kamat; +Cc: linux-kernel, lgirdwood, Laxman Dewangan
[-- Attachment #1: Type: text/plain, Size: 131 bytes --]
On Thu, Feb 20, 2014 at 02:23:19PM +0530, Sachin Kamat wrote:
> kzalloc prints its own OOM message upon failure.
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: [PATCH 20/23] regulator: wm831x-dcdc: Remove redundant error message
2014-02-20 8:53 ` [PATCH 20/23] regulator: wm831x-dcdc: " Sachin Kamat
@ 2014-02-20 12:03 ` Mark Brown
0 siblings, 0 replies; 45+ messages in thread
From: Mark Brown @ 2014-02-20 12:03 UTC (permalink / raw)
To: Sachin Kamat; +Cc: linux-kernel, lgirdwood
[-- Attachment #1: Type: text/plain, Size: 131 bytes --]
On Thu, Feb 20, 2014 at 02:23:20PM +0530, Sachin Kamat wrote:
> kzalloc prints its own OOM message upon failure.
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: [PATCH 21/23] regulator: wm831x-isink: Remove redundant error message
2014-02-20 8:53 ` [PATCH 21/23] regulator: wm831x-isink: " Sachin Kamat
@ 2014-02-20 12:03 ` Mark Brown
0 siblings, 0 replies; 45+ messages in thread
From: Mark Brown @ 2014-02-20 12:03 UTC (permalink / raw)
To: Sachin Kamat; +Cc: linux-kernel, lgirdwood
[-- Attachment #1: Type: text/plain, Size: 131 bytes --]
On Thu, Feb 20, 2014 at 02:23:21PM +0530, Sachin Kamat wrote:
> kzalloc prints its own OOM message upon failure.
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: [PATCH 22/23] regulator: wm831x-ldo: Remove redundant error message
2014-02-20 8:53 ` [PATCH 22/23] regulator: wm831x-ldo: " Sachin Kamat
@ 2014-02-20 12:04 ` Mark Brown
0 siblings, 0 replies; 45+ messages in thread
From: Mark Brown @ 2014-02-20 12:04 UTC (permalink / raw)
To: Sachin Kamat; +Cc: linux-kernel, lgirdwood
[-- Attachment #1: Type: text/plain, Size: 131 bytes --]
On Thu, Feb 20, 2014 at 02:23:22PM +0530, Sachin Kamat wrote:
> kzalloc prints its own OOM message upon failure.
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 45+ messages in thread
end of thread, other threads:[~2014-02-20 12:04 UTC | newest]
Thread overview: 45+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-20 8:53 [PATCH 01/23] regulator: da9063: Remove redundant error message Sachin Kamat
2014-02-20 8:53 ` [PATCH 02/23] regulator: da9210: " Sachin Kamat
2014-02-20 10:59 ` Mark Brown
2014-02-20 8:53 ` [PATCH 03/23] regulator: dbx500: " Sachin Kamat
2014-02-20 11:20 ` Mark Brown
2014-02-20 8:53 ` [PATCH 04/23] regulator: fan53555: " Sachin Kamat
2014-02-20 11:21 ` Mark Brown
2014-02-20 8:53 ` [PATCH 05/23] regulator: fixed: " Sachin Kamat
2014-02-20 11:23 ` Mark Brown
2014-02-20 8:53 ` [PATCH 06/23] regulator: max77686: " Sachin Kamat
2014-02-20 11:22 ` Mark Brown
2014-02-20 8:53 ` [PATCH 07/23] regulator: max8907: " Sachin Kamat
2014-02-20 11:23 ` Mark Brown
2014-02-20 8:53 ` [PATCH 08/23] regulator: max8952: " Sachin Kamat
2014-02-20 11:24 ` Mark Brown
2014-02-20 8:53 ` [PATCH 09/23] regulator: max8997: " Sachin Kamat
2014-02-20 11:25 ` Mark Brown
2014-02-20 8:53 ` [PATCH 10/23] regulator: rc5t583: " Sachin Kamat
2014-02-20 11:26 ` Mark Brown
2014-02-20 8:53 ` [PATCH 11/23] regulator: s5m8767: " Sachin Kamat
2014-02-20 11:49 ` Mark Brown
2014-02-20 8:53 ` [PATCH 12/23] regulator: tps51632: " Sachin Kamat
2014-02-20 11:50 ` Mark Brown
2014-02-20 8:53 ` [PATCH 13/23] regulator: tps62360: " Sachin Kamat
2014-02-20 11:51 ` Mark Brown
2014-02-20 8:53 ` [PATCH 14/23] regulator: tps6507x: " Sachin Kamat
2014-02-20 11:52 ` Mark Brown
2014-02-20 8:53 ` [PATCH 15/23] regulator: tps65090: " Sachin Kamat
2014-02-20 11:54 ` Mark Brown
2014-02-20 8:53 ` [PATCH 16/23] regulator: tps6524x: " Sachin Kamat
2014-02-20 11:55 ` Mark Brown
2014-02-20 8:53 ` [PATCH 17/23] regulator: tps6586x: " Sachin Kamat
2014-02-20 11:57 ` Mark Brown
2014-02-20 8:53 ` [PATCH 18/23] regulator: tps65910: " Sachin Kamat
2014-02-20 12:01 ` Mark Brown
2014-02-20 8:53 ` [PATCH 19/23] regulator: tps80031: " Sachin Kamat
2014-02-20 12:02 ` Mark Brown
2014-02-20 8:53 ` [PATCH 20/23] regulator: wm831x-dcdc: " Sachin Kamat
2014-02-20 12:03 ` Mark Brown
2014-02-20 8:53 ` [PATCH 21/23] regulator: wm831x-isink: " Sachin Kamat
2014-02-20 12:03 ` Mark Brown
2014-02-20 8:53 ` [PATCH 22/23] regulator: wm831x-ldo: " Sachin Kamat
2014-02-20 12:04 ` Mark Brown
2014-02-20 8:53 ` [PATCH 23/23] regulator: wm8994: " Sachin Kamat
2014-02-20 10:57 ` [PATCH 01/23] regulator: da9063: " Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®