leds: leds-wm8350: Use dev_err instead of printk
authorSachin Kamat <sachin.kamat@linaro.org>
Sun, 25 Nov 2012 07:15:11 +0000 (12:45 +0530)
committerBryan Wu <cooloney@gmail.com>
Tue, 27 Nov 2012 22:49:29 +0000 (14:49 -0800)
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: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
drivers/leds/leds-wm8350.c

index 88f23f845595e614c9164b3c1520375d77314521..ed15157c8f6cbec8f7c721e29564da3de805b3a9 100644 (file)
@@ -216,13 +216,13 @@ static int wm8350_led_probe(struct platform_device *pdev)
 
        isink = devm_regulator_get(&pdev->dev, "led_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);
        }
 
        dcdc = devm_regulator_get(&pdev->dev, "led_vcc");
        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);
        }
 
This page took 0.02646 seconds and 5 git commands to generate.