Commit c969faad authored by Jingoo Han's avatar Jingoo Han Committed by Mark Brown

regulator: bcm590xx: remove unnecessary OOM messages

The site-specific OOM messages are unnecessary, because they
duplicate the MM subsystem generic OOM message.
Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Acked-by: default avatarMatt Porter <mporter@linaro.org>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent c9eaa447
...@@ -263,10 +263,8 @@ static struct bcm590xx_board *bcm590xx_parse_dt_reg_data( ...@@ -263,10 +263,8 @@ static struct bcm590xx_board *bcm590xx_parse_dt_reg_data(
} }
data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL); data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL);
if (!data) { if (!data)
dev_err(&pdev->dev, "failed to allocate regulator board data\n");
return NULL; return NULL;
}
np = of_node_get(np); np = of_node_get(np);
regulators = of_get_child_by_name(np, "regulators"); regulators = of_get_child_by_name(np, "regulators");
...@@ -311,10 +309,8 @@ static int bcm590xx_probe(struct platform_device *pdev) ...@@ -311,10 +309,8 @@ static int bcm590xx_probe(struct platform_device *pdev)
&bcm590xx_reg_matches); &bcm590xx_reg_matches);
pmu = devm_kzalloc(&pdev->dev, sizeof(*pmu), GFP_KERNEL); pmu = devm_kzalloc(&pdev->dev, sizeof(*pmu), GFP_KERNEL);
if (!pmu) { if (!pmu)
dev_err(&pdev->dev, "Memory allocation failed for pmu\n");
return -ENOMEM; return -ENOMEM;
}
pmu->mfd = bcm590xx; pmu->mfd = bcm590xx;
...@@ -322,17 +318,13 @@ static int bcm590xx_probe(struct platform_device *pdev) ...@@ -322,17 +318,13 @@ static int bcm590xx_probe(struct platform_device *pdev)
pmu->desc = devm_kzalloc(&pdev->dev, BCM590XX_NUM_REGS * pmu->desc = devm_kzalloc(&pdev->dev, BCM590XX_NUM_REGS *
sizeof(struct regulator_desc), GFP_KERNEL); sizeof(struct regulator_desc), GFP_KERNEL);
if (!pmu->desc) { if (!pmu->desc)
dev_err(&pdev->dev, "Memory alloc fails for desc\n");
return -ENOMEM; return -ENOMEM;
}
pmu->info = devm_kzalloc(&pdev->dev, BCM590XX_NUM_REGS * pmu->info = devm_kzalloc(&pdev->dev, BCM590XX_NUM_REGS *
sizeof(struct bcm590xx_info *), GFP_KERNEL); sizeof(struct bcm590xx_info *), GFP_KERNEL);
if (!pmu->info) { if (!pmu->info)
dev_err(&pdev->dev, "Memory alloc fails for info\n");
return -ENOMEM; return -ENOMEM;
}
info = bcm590xx_regs; info = bcm590xx_regs;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment