aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/asus_atk0110.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-10-20 02:51:30 -0400
committerGuenter Roeck <guenter.roeck@ericsson.com>2011-01-08 13:55:04 -0500
commitac561494d48b92a41424cc87e2a02b545424643c (patch)
tree88049092e3355df828ccfa6126dcd01a677d3f7d /drivers/hwmon/asus_atk0110.c
parent4d630e2ba59a231c8e5031cc55e16737aa59af97 (diff)
hwmon: (asus_atk0110) Use pr_fmt and pr_<level>
Added #define pr_fmt KBUILD_MODNAME ": " fmt Converted printks to pr_<level> Coalesced any long formats Removed prefixes from formats Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Diffstat (limited to 'drivers/hwmon/asus_atk0110.c')
-rw-r--r--drivers/hwmon/asus_atk0110.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/hwmon/asus_atk0110.c b/drivers/hwmon/asus_atk0110.c
index 23b8555215d2..2d68cf3c223b 100644
--- a/drivers/hwmon/asus_atk0110.c
+++ b/drivers/hwmon/asus_atk0110.c
@@ -5,6 +5,8 @@
5 * See COPYING in the top level directory of the kernel tree. 5 * See COPYING in the top level directory of the kernel tree.
6 */ 6 */
7 7
8#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
9
8#include <linux/debugfs.h> 10#include <linux/debugfs.h>
9#include <linux/kernel.h> 11#include <linux/kernel.h>
10#include <linux/hwmon.h> 12#include <linux/hwmon.h>
@@ -1414,14 +1416,13 @@ static int __init atk0110_init(void)
1414 1416
1415 /* Make sure it's safe to access the device through ACPI */ 1417 /* Make sure it's safe to access the device through ACPI */
1416 if (!acpi_resources_are_enforced()) { 1418 if (!acpi_resources_are_enforced()) {
1417 pr_err("atk: Resources not safely usable due to " 1419 pr_err("Resources not safely usable due to acpi_enforce_resources kernel parameter\n");
1418 "acpi_enforce_resources kernel parameter\n");
1419 return -EBUSY; 1420 return -EBUSY;
1420 } 1421 }
1421 1422
1422 ret = acpi_bus_register_driver(&atk_driver); 1423 ret = acpi_bus_register_driver(&atk_driver);
1423 if (ret) 1424 if (ret)
1424 pr_info("atk: acpi_bus_register_driver failed: %d\n", ret); 1425 pr_info("acpi_bus_register_driver failed: %d\n", ret);
1425 1426
1426 return ret; 1427 return ret;
1427} 1428}