]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
leds: leds-gpio: Use dev_info instead of printk
authorSachin Kamat <sachin.kamat@linaro.org>
Sun, 25 Nov 2012 06:08:05 +0000 (11:38 +0530)
committerBryan Wu <cooloney@gmail.com>
Tue, 27 Nov 2012 22:49:27 +0000 (14:49 -0800)
Fixes the following checkpatch warning:
WARNING: Prefer netdev_info(netdev, ... then dev_info(dev, ... then pr_info(...  to printk(KERN_INFO ...
FILE: leds/leds-gpio.c:105:
printk(KERN_INFO "Skipping unavailable LED gpio %d (%s)\n",

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

index 77e2e40579296a821748b8e9d6361d3f761624ea..4f3179245ffeabbe5fe117907ab11c88285c4cae 100644 (file)
@@ -102,7 +102,7 @@ static int __devinit create_gpio_led(const struct gpio_led *template,
 
        /* skip leds that aren't available */
        if (!gpio_is_valid(template->gpio)) {
-               printk(KERN_INFO "Skipping unavailable LED gpio %d (%s)\n",
+               dev_info(parent, "Skipping unavailable LED gpio %d (%s)\n",
                                template->gpio, template->name);
                return 0;
        }