Skip to content

Commit

Permalink
leds: led-class: Fix checkpatch warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sachin Kamat authored and Bryan Wu committed Nov 27, 2012
1 parent 0419582 commit d23e7b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/leds/led-class.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d23e7b8

Please sign in to comment.