diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-11-25 01:40:27 -0500 |
---|---|---|
committer | Bryan Wu <cooloney@gmail.com> | 2012-11-27 17:49:27 -0500 |
commit | 30e5c3e6b74b6f8998a2b8407c66acf33ac521d0 (patch) | |
tree | 8b1c50f9434ac45560a81d020e871af8b778555a /drivers/leds/leds-lt3593.c | |
parent | 39de81a963ad261bcf2275ce5b1d6674a30c0428 (diff) |
leds: leds-lt3593: Fix checkpatch warnings
Fixes the following type of checkpatch warnings:
WARNING: Prefer netdev_info(netdev, ... then dev_info(dev, ...
then pr_info(... to printk(KERN_INFO ...
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
Diffstat (limited to 'drivers/leds/leds-lt3593.c')
-rw-r--r-- | drivers/leds/leds-lt3593.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/leds/leds-lt3593.c b/drivers/leds/leds-lt3593.c index 5ee6b8b7e4d3..f415c20d6fac 100644 --- a/drivers/leds/leds-lt3593.c +++ b/drivers/leds/leds-lt3593.c | |||
@@ -89,7 +89,7 @@ static int __devinit create_lt3593_led(const struct gpio_led *template, | |||
89 | 89 | ||
90 | /* skip leds on GPIOs that aren't available */ | 90 | /* skip leds on GPIOs that aren't available */ |
91 | if (!gpio_is_valid(template->gpio)) { | 91 | if (!gpio_is_valid(template->gpio)) { |
92 | printk(KERN_INFO "%s: skipping unavailable LT3593 LED at gpio %d (%s)\n", | 92 | dev_info(parent, "%s: skipping unavailable LT3593 LED at gpio %d (%s)\n", |
93 | KBUILD_MODNAME, template->gpio, template->name); | 93 | KBUILD_MODNAME, template->gpio, template->name); |
94 | return 0; | 94 | return 0; |
95 | } | 95 | } |
@@ -117,7 +117,7 @@ static int __devinit create_lt3593_led(const struct gpio_led *template, | |||
117 | if (ret < 0) | 117 | if (ret < 0) |
118 | return ret; | 118 | return ret; |
119 | 119 | ||
120 | printk(KERN_INFO "%s: registered LT3593 LED '%s' at GPIO %d\n", | 120 | dev_info(parent, "%s: registered LT3593 LED '%s' at GPIO %d\n", |
121 | KBUILD_MODNAME, template->name, template->gpio); | 121 | KBUILD_MODNAME, template->name, template->gpio); |
122 | 122 | ||
123 | return 0; | 123 | return 0; |