diff options
Diffstat (limited to 'drivers/leds/leds-clevo-mail.c')
| -rw-r--r-- | drivers/leds/leds-clevo-mail.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/leds/leds-clevo-mail.c b/drivers/leds/leds-clevo-mail.c index e024b0b1c3b1..6a8405df76a3 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 | } |
| @@ -153,7 +153,7 @@ static struct led_classdev clevo_mail_led = { | |||
| 153 | .flags = LED_CORE_SUSPENDRESUME, | 153 | .flags = LED_CORE_SUSPENDRESUME, |
| 154 | }; | 154 | }; |
| 155 | 155 | ||
| 156 | static int __devinit clevo_mail_led_probe(struct platform_device *pdev) | 156 | static int clevo_mail_led_probe(struct platform_device *pdev) |
| 157 | { | 157 | { |
| 158 | return led_classdev_register(&pdev->dev, &clevo_mail_led); | 158 | return led_classdev_register(&pdev->dev, &clevo_mail_led); |
| 159 | } | 159 | } |
| @@ -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 |
