leds: led-class.c - Quiet boot messages
authorH Hartley Sweeten <hartleys@visionengravers.com>
Wed, 6 Jan 2010 22:34:55 +0000 (15:34 -0700)
committerRichard Purdie <rpurdie@linux.intel.com>
Tue, 16 Mar 2010 19:49:21 +0000 (19:49 +0000)
As each led device gets registered a kernel message gets printed. In
an embedded system with a number of leds this can produce a lot
of output that just looks like noise.

Change the message type to KERN_DEBUG since it might be useful
in the dmesg output "after" booting.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
drivers/leds/led-class.c

index 782f95822eab0867f8db83666c5ba08d3a77a23e..349e073501443bccf83104a9c2cf4cb12ff8df72 100644 (file)
@@ -164,7 +164,7 @@ int led_classdev_register(struct device *parent, struct led_classdev *led_cdev)
        led_trigger_set_default(led_cdev);
 #endif
 
-       printk(KERN_INFO "Registered led device: %s\n",
+       printk(KERN_DEBUG "Registered led device: %s\n",
                        led_cdev->name);
 
        return 0;