Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Bryan Wu <cooloney@gmail.com>

authored by

Sachin Kamat and committed by
Bryan Wu
b75d2802 dcba9105

+2 -2
+2 -2
drivers/leds/leds-wm8350.c
··· 216 216 217 217 isink = devm_regulator_get(&pdev->dev, "led_isink"); 218 218 if (IS_ERR(isink)) { 219 - printk(KERN_ERR "%s: can't get ISINK\n", __func__); 219 + dev_err(&pdev->dev, "%s: can't get ISINK\n", __func__); 220 220 return PTR_ERR(isink); 221 221 } 222 222 223 223 dcdc = devm_regulator_get(&pdev->dev, "led_vcc"); 224 224 if (IS_ERR(dcdc)) { 225 - printk(KERN_ERR "%s: can't get DCDC\n", __func__); 225 + dev_err(&pdev->dev, "%s: can't get DCDC\n", __func__); 226 226 return PTR_ERR(dcdc); 227 227 } 228 228