aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/asus_atk0110.c
diff options
context:
space:
mode:
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}