diff options
author | Joey Lee <jlee@novell.com> | 2011-03-16 03:55:19 -0400 |
---|---|---|
committer | Matthew Garrett <mjg@redhat.com> | 2011-03-28 06:45:00 -0400 |
commit | bbe24fee22fa045a07ff7e926589ac722c7ee78d (patch) | |
tree | b58001aa3304de354397066df0b21e6625bfaa7b /drivers/platform | |
parent | 2d70b73ae5b85c9d13f5dfbb8fc4fd5edae633dc (diff) |
msi-laptop: use pr_<level> for messages
msi-laptop: use pr_<level> for messages
Cc: Carlos Corbacho <carlos@strangeworlds.co.uk>
Cc: Matthew Garrett <mjg@redhat.com>
Cc: Dmitry Torokhov <dtor@mail.ru>
Cc: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Lee, Chun-Yi <jlee@novell.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/msi-laptop.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/platform/x86/msi-laptop.c b/drivers/platform/x86/msi-laptop.c index fb4da28f5906..23fb2afda00b 100644 --- a/drivers/platform/x86/msi-laptop.c +++ b/drivers/platform/x86/msi-laptop.c | |||
@@ -51,6 +51,8 @@ | |||
51 | * laptop as MSI S270. YMMV. | 51 | * laptop as MSI S270. YMMV. |
52 | */ | 52 | */ |
53 | 53 | ||
54 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
55 | |||
54 | #include <linux/module.h> | 56 | #include <linux/module.h> |
55 | #include <linux/kernel.h> | 57 | #include <linux/kernel.h> |
56 | #include <linux/init.h> | 58 | #include <linux/init.h> |
@@ -445,8 +447,7 @@ static struct platform_device *msipf_device; | |||
445 | 447 | ||
446 | static int dmi_check_cb(const struct dmi_system_id *id) | 448 | static int dmi_check_cb(const struct dmi_system_id *id) |
447 | { | 449 | { |
448 | printk(KERN_INFO "msi-laptop: Identified laptop model '%s'.\n", | 450 | pr_info("Identified laptop model '%s'.\n", id->ident); |
449 | id->ident); | ||
450 | return 1; | 451 | return 1; |
451 | } | 452 | } |
452 | 453 | ||
@@ -834,8 +835,7 @@ static int load_scm_model_init(struct platform_device *sdev) | |||
834 | 835 | ||
835 | result = i8042_install_filter(msi_laptop_i8042_filter); | 836 | result = i8042_install_filter(msi_laptop_i8042_filter); |
836 | if (result) { | 837 | if (result) { |
837 | printk(KERN_ERR | 838 | pr_err("Unable to install key filter\n"); |
838 | "msi-laptop: Unable to install key filter\n"); | ||
839 | goto fail_filter; | 839 | goto fail_filter; |
840 | } | 840 | } |
841 | 841 | ||
@@ -875,7 +875,7 @@ static int __init msi_init(void) | |||
875 | /* Register backlight stuff */ | 875 | /* Register backlight stuff */ |
876 | 876 | ||
877 | if (acpi_video_backlight_support()) { | 877 | if (acpi_video_backlight_support()) { |
878 | printk(KERN_INFO "MSI: Brightness ignored, must be controlled " | 878 | pr_info("Brightness ignored, must be controlled " |
879 | "by ACPI video driver\n"); | 879 | "by ACPI video driver\n"); |
880 | } else { | 880 | } else { |
881 | struct backlight_properties props; | 881 | struct backlight_properties props; |
@@ -930,7 +930,7 @@ static int __init msi_init(void) | |||
930 | if (auto_brightness != 2) | 930 | if (auto_brightness != 2) |
931 | set_auto_brightness(auto_brightness); | 931 | set_auto_brightness(auto_brightness); |
932 | 932 | ||
933 | printk(KERN_INFO "msi-laptop: driver "MSI_DRIVER_VERSION" successfully loaded.\n"); | 933 | pr_info("driver "MSI_DRIVER_VERSION" successfully loaded.\n"); |
934 | 934 | ||
935 | return 0; | 935 | return 0; |
936 | 936 | ||
@@ -978,7 +978,7 @@ static void __exit msi_cleanup(void) | |||
978 | if (auto_brightness != 2) | 978 | if (auto_brightness != 2) |
979 | set_auto_brightness(1); | 979 | set_auto_brightness(1); |
980 | 980 | ||
981 | printk(KERN_INFO "msi-laptop: driver unloaded.\n"); | 981 | pr_info("driver unloaded.\n"); |
982 | } | 982 | } |
983 | 983 | ||
984 | module_init(msi_init); | 984 | module_init(msi_init); |