mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 01:22:07 +00:00
platform/x86: intel_oaktrail: Use pr_warn instead of pr_warning
As said in commit f2c2cbcc35
("powerpc: Use pr_warn instead of
pr_warning"), removing pr_warning so all logging messages use a
consistent <prefix>_warn style. Let's do it.
Link: http://lkml.kernel.org/r/20191018031850.48498-20-wangkefeng.wang@huawei.com
To: linux-kernel@vger.kernel.org
Cc: Corentin Chary <corentin.chary@gmail.com>
Cc: Darren Hart <dvhart@infradead.org>
Cc: Andy Shevchenko <andy@infradead.org>
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Acked-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
This commit is contained in:
parent
ab5561095c
commit
c676412102
@ -243,7 +243,7 @@ static int oaktrail_backlight_init(void)
|
||||
|
||||
if (IS_ERR(bd)) {
|
||||
oaktrail_bl_device = NULL;
|
||||
pr_warning("Unable to register backlight device\n");
|
||||
pr_warn("Unable to register backlight device\n");
|
||||
return PTR_ERR(bd);
|
||||
}
|
||||
|
||||
@ -313,20 +313,20 @@ static int __init oaktrail_init(void)
|
||||
|
||||
ret = platform_driver_register(&oaktrail_driver);
|
||||
if (ret) {
|
||||
pr_warning("Unable to register platform driver\n");
|
||||
pr_warn("Unable to register platform driver\n");
|
||||
goto err_driver_reg;
|
||||
}
|
||||
|
||||
oaktrail_device = platform_device_alloc(DRIVER_NAME, -1);
|
||||
if (!oaktrail_device) {
|
||||
pr_warning("Unable to allocate platform device\n");
|
||||
pr_warn("Unable to allocate platform device\n");
|
||||
ret = -ENOMEM;
|
||||
goto err_device_alloc;
|
||||
}
|
||||
|
||||
ret = platform_device_add(oaktrail_device);
|
||||
if (ret) {
|
||||
pr_warning("Unable to add platform device\n");
|
||||
pr_warn("Unable to add platform device\n");
|
||||
goto err_device_add;
|
||||
}
|
||||
|
||||
@ -338,7 +338,7 @@ static int __init oaktrail_init(void)
|
||||
|
||||
ret = oaktrail_rfkill_init();
|
||||
if (ret) {
|
||||
pr_warning("Setup rfkill failed\n");
|
||||
pr_warn("Setup rfkill failed\n");
|
||||
goto err_rfkill;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user