Skip to content

Commit

Permalink
regulator: pbias: remove unnecessary OOM messages
Browse files Browse the repository at this point in the history
The site-specific OOM messages are unnecessary, because they
duplicate the MM subsystem generic OOM message.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Jingoo Han authored and broonie committed Jun 2, 2014
1 parent 75dbf0a commit 0ee42bb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/regulator/pbias-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,8 @@ static int pbias_regulator_probe(struct platform_device *pdev)

drvdata = devm_kzalloc(&pdev->dev, sizeof(struct pbias_regulator_data)
* count, GFP_KERNEL);
if (drvdata == NULL) {
dev_err(&pdev->dev, "Failed to allocate device data\n");
if (!drvdata)
return -ENOMEM;
}

syscon = syscon_regmap_lookup_by_phandle(np, "syscon");
if (IS_ERR(syscon))
Expand Down

0 comments on commit 0ee42bb

Please sign in to comment.