Commit b75d2802 authored by Sachin Kamat's avatar Sachin Kamat Committed by Bryan Wu

leds: leds-wm8350: Use dev_err instead of printk

Fixes the following type of checkpatch warnings:
WARNING: Prefer netdev_err(netdev, ... then dev_err(dev, ...
then pr_err(...  to printk(KERN_ERR ...
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarBryan Wu <cooloney@gmail.com>
parent dcba9105
...@@ -216,13 +216,13 @@ static int wm8350_led_probe(struct platform_device *pdev) ...@@ -216,13 +216,13 @@ static int wm8350_led_probe(struct platform_device *pdev)
isink = devm_regulator_get(&pdev->dev, "led_isink"); isink = devm_regulator_get(&pdev->dev, "led_isink");
if (IS_ERR(isink)) { if (IS_ERR(isink)) {
printk(KERN_ERR "%s: can't get ISINK\n", __func__); dev_err(&pdev->dev, "%s: can't get ISINK\n", __func__);
return PTR_ERR(isink); return PTR_ERR(isink);
} }
dcdc = devm_regulator_get(&pdev->dev, "led_vcc"); dcdc = devm_regulator_get(&pdev->dev, "led_vcc");
if (IS_ERR(dcdc)) { if (IS_ERR(dcdc)) {
printk(KERN_ERR "%s: can't get DCDC\n", __func__); dev_err(&pdev->dev, "%s: can't get DCDC\n", __func__);
return PTR_ERR(dcdc); return PTR_ERR(dcdc);
} }
......
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