diff options
Diffstat (limited to 'drivers/acpi/osl.c')
-rw-r--r-- | drivers/acpi/osl.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index 055d7b701fff..e2dd6de5d50c 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c | |||
@@ -320,7 +320,7 @@ acpi_os_map_memory(acpi_physical_address phys, acpi_size size) | |||
320 | 320 | ||
321 | pg_off = round_down(phys, PAGE_SIZE); | 321 | pg_off = round_down(phys, PAGE_SIZE); |
322 | pg_sz = round_up(phys + size, PAGE_SIZE) - pg_off; | 322 | pg_sz = round_up(phys + size, PAGE_SIZE) - pg_off; |
323 | virt = ioremap(pg_off, pg_sz); | 323 | virt = ioremap_cache(pg_off, pg_sz); |
324 | if (!virt) { | 324 | if (!virt) { |
325 | kfree(map); | 325 | kfree(map); |
326 | return NULL; | 326 | return NULL; |
@@ -642,7 +642,7 @@ acpi_os_read_memory(acpi_physical_address phys_addr, u32 * value, u32 width) | |||
642 | virt_addr = acpi_map_vaddr_lookup(phys_addr, size); | 642 | virt_addr = acpi_map_vaddr_lookup(phys_addr, size); |
643 | rcu_read_unlock(); | 643 | rcu_read_unlock(); |
644 | if (!virt_addr) { | 644 | if (!virt_addr) { |
645 | virt_addr = ioremap(phys_addr, size); | 645 | virt_addr = ioremap_cache(phys_addr, size); |
646 | unmap = 1; | 646 | unmap = 1; |
647 | } | 647 | } |
648 | if (!value) | 648 | if (!value) |
@@ -678,7 +678,7 @@ acpi_os_write_memory(acpi_physical_address phys_addr, u32 value, u32 width) | |||
678 | virt_addr = acpi_map_vaddr_lookup(phys_addr, size); | 678 | virt_addr = acpi_map_vaddr_lookup(phys_addr, size); |
679 | rcu_read_unlock(); | 679 | rcu_read_unlock(); |
680 | if (!virt_addr) { | 680 | if (!virt_addr) { |
681 | virt_addr = ioremap(phys_addr, size); | 681 | virt_addr = ioremap_cache(phys_addr, size); |
682 | unmap = 1; | 682 | unmap = 1; |
683 | } | 683 | } |
684 | 684 | ||
@@ -1233,8 +1233,7 @@ __setup("acpi_enforce_resources=", acpi_enforce_resources_setup); | |||
1233 | int acpi_check_resource_conflict(const struct resource *res) | 1233 | int acpi_check_resource_conflict(const struct resource *res) |
1234 | { | 1234 | { |
1235 | struct acpi_res_list *res_list_elem; | 1235 | struct acpi_res_list *res_list_elem; |
1236 | int ioport; | 1236 | int ioport = 0, clash = 0; |
1237 | int clash = 0; | ||
1238 | 1237 | ||
1239 | if (acpi_enforce_resources == ENFORCE_RESOURCES_NO) | 1238 | if (acpi_enforce_resources == ENFORCE_RESOURCES_NO) |
1240 | return 0; | 1239 | return 0; |
@@ -1264,9 +1263,13 @@ int acpi_check_resource_conflict(const struct resource *res) | |||
1264 | if (clash) { | 1263 | if (clash) { |
1265 | if (acpi_enforce_resources != ENFORCE_RESOURCES_NO) { | 1264 | if (acpi_enforce_resources != ENFORCE_RESOURCES_NO) { |
1266 | printk(KERN_WARNING "ACPI: resource %s %pR" | 1265 | printk(KERN_WARNING "ACPI: resource %s %pR" |
1267 | " conflicts with ACPI region %s %pR\n", | 1266 | " conflicts with ACPI region %s " |
1267 | "[%s 0x%zx-0x%zx]\n", | ||
1268 | res->name, res, res_list_elem->name, | 1268 | res->name, res, res_list_elem->name, |
1269 | res_list_elem); | 1269 | (res_list_elem->resource_type == |
1270 | ACPI_ADR_SPACE_SYSTEM_IO) ? "io" : "mem", | ||
1271 | (size_t) res_list_elem->start, | ||
1272 | (size_t) res_list_elem->end); | ||
1270 | if (acpi_enforce_resources == ENFORCE_RESOURCES_LAX) | 1273 | if (acpi_enforce_resources == ENFORCE_RESOURCES_LAX) |
1271 | printk(KERN_NOTICE "ACPI: This conflict may" | 1274 | printk(KERN_NOTICE "ACPI: This conflict may" |
1272 | " cause random problems and system" | 1275 | " cause random problems and system" |