mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
2d70b73ae5
commit
bbe24fee22
1 changed files with 7 additions and 7 deletions
|
@ -51,6 +51,8 @@
|
||||||
* laptop as MSI S270. YMMV.
|
* laptop as MSI S270. YMMV.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
||||||
|
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
|
@ -445,8 +447,7 @@ static struct platform_device *msipf_device;
|
||||||
|
|
||||||
static int dmi_check_cb(const struct dmi_system_id *id)
|
static int dmi_check_cb(const struct dmi_system_id *id)
|
||||||
{
|
{
|
||||||
printk(KERN_INFO "msi-laptop: Identified laptop model '%s'.\n",
|
pr_info("Identified laptop model '%s'.\n", id->ident);
|
||||||
id->ident);
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -834,8 +835,7 @@ static int load_scm_model_init(struct platform_device *sdev)
|
||||||
|
|
||||||
result = i8042_install_filter(msi_laptop_i8042_filter);
|
result = i8042_install_filter(msi_laptop_i8042_filter);
|
||||||
if (result) {
|
if (result) {
|
||||||
printk(KERN_ERR
|
pr_err("Unable to install key filter\n");
|
||||||
"msi-laptop: Unable to install key filter\n");
|
|
||||||
goto fail_filter;
|
goto fail_filter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -875,7 +875,7 @@ static int __init msi_init(void)
|
||||||
/* Register backlight stuff */
|
/* Register backlight stuff */
|
||||||
|
|
||||||
if (acpi_video_backlight_support()) {
|
if (acpi_video_backlight_support()) {
|
||||||
printk(KERN_INFO "MSI: Brightness ignored, must be controlled "
|
pr_info("Brightness ignored, must be controlled "
|
||||||
"by ACPI video driver\n");
|
"by ACPI video driver\n");
|
||||||
} else {
|
} else {
|
||||||
struct backlight_properties props;
|
struct backlight_properties props;
|
||||||
|
@ -930,7 +930,7 @@ static int __init msi_init(void)
|
||||||
if (auto_brightness != 2)
|
if (auto_brightness != 2)
|
||||||
set_auto_brightness(auto_brightness);
|
set_auto_brightness(auto_brightness);
|
||||||
|
|
||||||
printk(KERN_INFO "msi-laptop: driver "MSI_DRIVER_VERSION" successfully loaded.\n");
|
pr_info("driver "MSI_DRIVER_VERSION" successfully loaded.\n");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
@ -978,7 +978,7 @@ static void __exit msi_cleanup(void)
|
||||||
if (auto_brightness != 2)
|
if (auto_brightness != 2)
|
||||||
set_auto_brightness(1);
|
set_auto_brightness(1);
|
||||||
|
|
||||||
printk(KERN_INFO "msi-laptop: driver unloaded.\n");
|
pr_info("driver unloaded.\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
module_init(msi_init);
|
module_init(msi_init);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue