regulator: max8952: 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>
This commit is contained in:
parent
38dbfb59d1
commit
7752d96400
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user