leds: led-class: Fix checkpatch warning
authorSachin Kamat <sachin.kamat@linaro.org>
Sun, 25 Nov 2012 05:27:35 +0000 (10:57 +0530)
committerBryan Wu <cooloney@gmail.com>
Tue, 27 Nov 2012 22:49:25 +0000 (14:49 -0800)
Fixes the following checkpatch warning:
WARNING: Prefer netdev_dbg(netdev, ... then dev_dbg(dev, ... then pr_debug(...  to printk(KERN_DEBUG ...
FILE: leds/led-class.c:214:
printk(KERN_DEBUG "Registered led device: %s\n",

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
drivers/leds/led-class.c

index 48cce18e9d6d5d8c97e89ab953b586e5107a75e0..a20752f562bce37315c984f914660691c14ec0d0 100644 (file)
@@ -211,7 +211,7 @@ int led_classdev_register(struct device *parent, struct led_classdev *led_cdev)
        led_trigger_set_default(led_cdev);
 #endif
 
-       printk(KERN_DEBUG "Registered led device: %s\n",
+       dev_dbg(parent, "Registered led device: %s\n",
                        led_cdev->name);
 
        return 0;