diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-11-27 23:38:10 -0500 |
---|---|---|
committer | Bryan Wu <cooloney@gmail.com> | 2012-11-28 18:12:54 -0500 |
commit | 5c6f844cee2139182b3a778f2a883a77e5bb8f7d (patch) | |
tree | de047a13099a7e41c1ba3423478a6398cdcdc7c5 /drivers | |
parent | 7a0eff4d83165dc8f90a4e77c59d7fef6da04bed (diff) |
leds: leds-clevo-mail: Use pr_* instead of printks
Silences checkpatch warnings related to the use of printks.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/leds/leds-clevo-mail.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/leds/leds-clevo-mail.c b/drivers/leds/leds-clevo-mail.c index e024b0b1c3b1..4fd0493ea4c8 100644 --- a/drivers/leds/leds-clevo-mail.c +++ b/drivers/leds/leds-clevo-mail.c | |||
@@ -1,3 +1,4 @@ | |||
1 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
1 | 2 | ||
2 | #include <linux/module.h> | 3 | #include <linux/module.h> |
3 | 4 | ||
@@ -26,7 +27,7 @@ static struct platform_device *pdev; | |||
26 | 27 | ||
27 | static int __init clevo_mail_led_dmi_callback(const struct dmi_system_id *id) | 28 | static int __init clevo_mail_led_dmi_callback(const struct dmi_system_id *id) |
28 | { | 29 | { |
29 | printk(KERN_INFO KBUILD_MODNAME ": '%s' found\n", id->ident); | 30 | pr_info("'%s' found\n", id->ident); |
30 | return 1; | 31 | return 1; |
31 | } | 32 | } |
32 | 33 | ||
@@ -135,8 +136,7 @@ static int clevo_mail_led_blink(struct led_classdev *led_cdev, | |||
135 | status = 0; | 136 | status = 0; |
136 | 137 | ||
137 | } else { | 138 | } else { |
138 | printk(KERN_DEBUG KBUILD_MODNAME | 139 | pr_debug("clevo_mail_led_blink(..., %lu, %lu)," |
139 | ": clevo_mail_led_blink(..., %lu, %lu)," | ||
140 | " returning -EINVAL (unsupported)\n", | 140 | " returning -EINVAL (unsupported)\n", |
141 | *delay_on, *delay_off); | 141 | *delay_on, *delay_off); |
142 | } | 142 | } |
@@ -183,7 +183,7 @@ static int __init clevo_mail_led_init(void) | |||
183 | count = dmi_check_system(clevo_mail_led_dmi_table); | 183 | count = dmi_check_system(clevo_mail_led_dmi_table); |
184 | } else { | 184 | } else { |
185 | count = 1; | 185 | count = 1; |
186 | printk(KERN_ERR KBUILD_MODNAME ": Skipping DMI detection. " | 186 | pr_err("Skipping DMI detection. " |
187 | "If the driver works on your hardware please " | 187 | "If the driver works on your hardware please " |
188 | "report model and the output of dmidecode in tracker " | 188 | "report model and the output of dmidecode in tracker " |
189 | "at http://sourceforge.net/projects/clevo-mailled/\n"); | 189 | "at http://sourceforge.net/projects/clevo-mailled/\n"); |
@@ -197,8 +197,7 @@ static int __init clevo_mail_led_init(void) | |||
197 | error = platform_driver_probe(&clevo_mail_led_driver, | 197 | error = platform_driver_probe(&clevo_mail_led_driver, |
198 | clevo_mail_led_probe); | 198 | clevo_mail_led_probe); |
199 | if (error) { | 199 | if (error) { |
200 | printk(KERN_ERR KBUILD_MODNAME | 200 | pr_err("Can't probe platform driver\n"); |
201 | ": Can't probe platform driver\n"); | ||
202 | platform_device_unregister(pdev); | 201 | platform_device_unregister(pdev); |
203 | } | 202 | } |
204 | } else | 203 | } else |