Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5730aa57 authored by Sachin Kamat's avatar Sachin Kamat Committed by Mark Brown
Browse files

regulator: wm831x-dcdc: Remove redundant error message



kzalloc prints its own OOM message upon failure.

Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 38dbfb59
Loading
Loading
Loading
Loading
+4 −12
Original line number Original line Diff line number Diff line
@@ -469,10 +469,8 @@ static int wm831x_buckv_probe(struct platform_device *pdev)


	dcdc = devm_kzalloc(&pdev->dev,  sizeof(struct wm831x_dcdc),
	dcdc = devm_kzalloc(&pdev->dev,  sizeof(struct wm831x_dcdc),
			    GFP_KERNEL);
			    GFP_KERNEL);
	if (dcdc == NULL) {
	if (!dcdc)
		dev_err(&pdev->dev, "Unable to allocate private data\n");
		return -ENOMEM;
		return -ENOMEM;
	}


	dcdc->wm831x = wm831x;
	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),
	dcdc = devm_kzalloc(&pdev->dev, sizeof(struct wm831x_dcdc),
			    GFP_KERNEL);
			    GFP_KERNEL);
	if (dcdc == NULL) {
	if (!dcdc)
		dev_err(&pdev->dev, "Unable to allocate private data\n");
		return -ENOMEM;
		return -ENOMEM;
	}


	dcdc->wm831x = wm831x;
	dcdc->wm831x = wm831x;


@@ -752,10 +748,8 @@ static int wm831x_boostp_probe(struct platform_device *pdev)
		return -ENODEV;
		return -ENODEV;


	dcdc = devm_kzalloc(&pdev->dev, sizeof(struct wm831x_dcdc), GFP_KERNEL);
	dcdc = devm_kzalloc(&pdev->dev, sizeof(struct wm831x_dcdc), GFP_KERNEL);
	if (dcdc == NULL) {
	if (!dcdc)
		dev_err(&pdev->dev, "Unable to allocate private data\n");
		return -ENOMEM;
		return -ENOMEM;
	}


	dcdc->wm831x = wm831x;
	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);
	dev_dbg(&pdev->dev, "Probing EPE%d\n", id + 1);


	dcdc = devm_kzalloc(&pdev->dev, sizeof(struct wm831x_dcdc), GFP_KERNEL);
	dcdc = devm_kzalloc(&pdev->dev, sizeof(struct wm831x_dcdc), GFP_KERNEL);
	if (dcdc == NULL) {
	if (!dcdc)
		dev_err(&pdev->dev, "Unable to allocate private data\n");
		return -ENOMEM;
		return -ENOMEM;
	}


	dcdc->wm831x = wm831x;
	dcdc->wm831x = wm831x;