aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/ec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c
index b19a18dd994f..3268dcfbaa9b 100644
--- a/drivers/acpi/ec.c
+++ b/drivers/acpi/ec.c
@@ -812,10 +812,10 @@ static int acpi_ec_add(struct acpi_device *device)
812 first_ec = ec; 812 first_ec = ec;
813 device->driver_data = ec; 813 device->driver_data = ec;
814 814
815 WARN(!request_region(ec->data_addr, 1, "EC data"), 815 ret = !!request_region(ec->data_addr, 1, "EC data");
816 "Could not request EC data io port 0x%lx", ec->data_addr); 816 WARN(!ret, "Could not request EC data io port 0x%lx", ec->data_addr);
817 WARN(!request_region(ec->command_addr, 1, "EC cmd"), 817 ret = !!request_region(ec->command_addr, 1, "EC cmd");
818 "Could not request EC cmd io port 0x%lx", ec->command_addr); 818 WARN(!ret, "Could not request EC cmd io port 0x%lx", ec->command_addr);
819 819
820 pr_info(PREFIX "GPE = 0x%lx, I/O: command/status = 0x%lx, data = 0x%lx\n", 820 pr_info(PREFIX "GPE = 0x%lx, I/O: command/status = 0x%lx, data = 0x%lx\n",
821 ec->gpe, ec->command_addr, ec->data_addr); 821 ec->gpe, ec->command_addr, ec->data_addr);