diff options
author | Guenter Roeck <linux@roeck-us.net> | 2013-12-14 12:30:08 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-12-18 19:43:57 -0500 |
commit | 60e71aafdbedac3f569003883f0ca6561e41b395 (patch) | |
tree | 33b32332c054f820dcfbc825e190e81d96bdd730 /drivers/char | |
parent | 8712954d15f194f9639f60e6347797d784c03abb (diff) |
i8k: Convert to use pr_ functions instead of printk
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/i8k.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/drivers/char/i8k.c b/drivers/char/i8k.c index e6939e13e338..5f33778d2af4 100644 --- a/drivers/char/i8k.c +++ b/drivers/char/i8k.c | |||
@@ -19,6 +19,8 @@ | |||
19 | * General Public License for more details. | 19 | * General Public License for more details. |
20 | */ | 20 | */ |
21 | 21 | ||
22 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
23 | |||
22 | #include <linux/module.h> | 24 | #include <linux/module.h> |
23 | #include <linux/types.h> | 25 | #include <linux/types.h> |
24 | #include <linux/init.h> | 26 | #include <linux/init.h> |
@@ -535,7 +537,7 @@ static int __init i8k_init_hwmon(void) | |||
535 | if (IS_ERR(i8k_hwmon_dev)) { | 537 | if (IS_ERR(i8k_hwmon_dev)) { |
536 | err = PTR_ERR(i8k_hwmon_dev); | 538 | err = PTR_ERR(i8k_hwmon_dev); |
537 | i8k_hwmon_dev = NULL; | 539 | i8k_hwmon_dev = NULL; |
538 | printk(KERN_ERR "i8k: hwmon registration failed (%d)\n", err); | 540 | pr_err("hwmon registration failed (%d)\n", err); |
539 | return err; | 541 | return err; |
540 | } | 542 | } |
541 | 543 | ||
@@ -689,8 +691,8 @@ static int __init i8k_probe(void) | |||
689 | if (!ignore_dmi && !force) | 691 | if (!ignore_dmi && !force) |
690 | return -ENODEV; | 692 | return -ENODEV; |
691 | 693 | ||
692 | printk(KERN_INFO "i8k: not running on a supported Dell system.\n"); | 694 | pr_info("not running on a supported Dell system.\n"); |
693 | printk(KERN_INFO "i8k: vendor=%s, model=%s, version=%s\n", | 695 | pr_info("vendor=%s, model=%s, version=%s\n", |
694 | i8k_get_dmi_data(DMI_SYS_VENDOR), | 696 | i8k_get_dmi_data(DMI_SYS_VENDOR), |
695 | i8k_get_dmi_data(DMI_PRODUCT_NAME), | 697 | i8k_get_dmi_data(DMI_PRODUCT_NAME), |
696 | i8k_get_dmi_data(DMI_BIOS_VERSION)); | 698 | i8k_get_dmi_data(DMI_BIOS_VERSION)); |
@@ -703,7 +705,7 @@ static int __init i8k_probe(void) | |||
703 | */ | 705 | */ |
704 | if (i8k_get_dell_signature(I8K_SMM_GET_DELL_SIG1) && | 706 | if (i8k_get_dell_signature(I8K_SMM_GET_DELL_SIG1) && |
705 | i8k_get_dell_signature(I8K_SMM_GET_DELL_SIG2)) { | 707 | i8k_get_dell_signature(I8K_SMM_GET_DELL_SIG2)) { |
706 | printk(KERN_ERR "i8k: unable to get SMM Dell signature\n"); | 708 | pr_err("unable to get SMM Dell signature\n"); |
707 | if (!force) | 709 | if (!force) |
708 | return -ENODEV; | 710 | return -ENODEV; |
709 | } | 711 | } |
@@ -713,7 +715,7 @@ static int __init i8k_probe(void) | |||
713 | */ | 715 | */ |
714 | version = i8k_get_bios_version(); | 716 | version = i8k_get_bios_version(); |
715 | if (version <= 0) { | 717 | if (version <= 0) { |
716 | printk(KERN_WARNING "i8k: unable to get SMM BIOS version\n"); | 718 | pr_warn("unable to get SMM BIOS version\n"); |
717 | } else { | 719 | } else { |
718 | buff[0] = (version >> 16) & 0xff; | 720 | buff[0] = (version >> 16) & 0xff; |
719 | buff[1] = (version >> 8) & 0xff; | 721 | buff[1] = (version >> 8) & 0xff; |
@@ -729,7 +731,7 @@ static int __init i8k_probe(void) | |||
729 | * Check if the two versions match. | 731 | * Check if the two versions match. |
730 | */ | 732 | */ |
731 | if (strncmp(buff, bios_version, sizeof(bios_version)) != 0) | 733 | if (strncmp(buff, bios_version, sizeof(bios_version)) != 0) |
732 | printk(KERN_WARNING "i8k: BIOS version mismatch: %s != %s\n", | 734 | pr_warn("BIOS version mismatch: %s != %s\n", |
733 | buff, bios_version); | 735 | buff, bios_version); |
734 | } | 736 | } |
735 | 737 | ||
@@ -754,9 +756,8 @@ static int __init i8k_init(void) | |||
754 | if (err) | 756 | if (err) |
755 | goto exit_remove_proc; | 757 | goto exit_remove_proc; |
756 | 758 | ||
757 | printk(KERN_INFO | 759 | pr_info("Dell laptop SMM driver v%s Massimo Dal Zotto (dz@debian.org)\n", |
758 | "Dell laptop SMM driver v%s Massimo Dal Zotto (dz@debian.org)\n", | 760 | I8K_VERSION); |
759 | I8K_VERSION); | ||
760 | 761 | ||
761 | return 0; | 762 | return 0; |
762 | 763 | ||