diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-11-25 01:08:05 -0500 |
---|---|---|
committer | Bryan Wu <cooloney@gmail.com> | 2012-11-27 17:49:27 -0500 |
commit | 39de81a963ad261bcf2275ce5b1d6674a30c0428 (patch) | |
tree | 2c49b5e9cad3266898b6c9afa81399ad4747c5ea /drivers/leds/leds-gpio.c | |
parent | 141bfeea561fd19e599153e31d1b46e86ffa5753 (diff) |
leds: leds-gpio: Use dev_info instead of printk
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>
Diffstat (limited to 'drivers/leds/leds-gpio.c')
-rw-r--r-- | drivers/leds/leds-gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-gpio.c b/drivers/leds/leds-gpio.c index 77e2e4057929..4f3179245ffe 100644 --- a/drivers/leds/leds-gpio.c +++ b/drivers/leds/leds-gpio.c | |||
@@ -102,7 +102,7 @@ static int __devinit create_gpio_led(const struct gpio_led *template, | |||
102 | 102 | ||
103 | /* skip leds that aren't available */ | 103 | /* skip leds that aren't available */ |
104 | if (!gpio_is_valid(template->gpio)) { | 104 | if (!gpio_is_valid(template->gpio)) { |
105 | printk(KERN_INFO "Skipping unavailable LED gpio %d (%s)\n", | 105 | dev_info(parent, "Skipping unavailable LED gpio %d (%s)\n", |
106 | template->gpio, template->name); | 106 | template->gpio, template->name); |
107 | return 0; | 107 | return 0; |
108 | } | 108 | } |