diff options
| author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-01-23 17:24:26 +0000 | 
|---|---|---|
| committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-01-24 23:45:32 +0000 | 
| commit | bdd92c9ad287e03a2ec52f5a89c470cd5caae1c2 (patch) | |
| tree | 38d863507e900fb2ccac4c22fcf8934271c051b5 /drivers/acpi/osl.c | |
| parent | a37f2f87edc1b6e5932becf6e51535d36b690f2a (diff) | |
| parent | 8e934dbf264418afe4d1dff34ce074ecc14280db (diff) | |
| download | olio-linux-3.10-bdd92c9ad287e03a2ec52f5a89c470cd5caae1c2.tar.xz olio-linux-3.10-bdd92c9ad287e03a2ec52f5a89c470cd5caae1c2.zip  | |
Merge branch 'drm-intel-fixes' into drm-intel-next
Merge important suspend and resume regression fixes and resolve the
small conflict.
Conflicts:
	drivers/gpu/drm/i915/i915_dma.c
Diffstat (limited to 'drivers/acpi/osl.c')
| -rw-r--r-- | drivers/acpi/osl.c | 12 | 
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index e2dd6de5d50..b0931818cf9 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c @@ -38,6 +38,7 @@  #include <linux/workqueue.h>  #include <linux/nmi.h>  #include <linux/acpi.h> +#include <linux/acpi_io.h>  #include <linux/efi.h>  #include <linux/ioport.h>  #include <linux/list.h> @@ -302,9 +303,10 @@ void __iomem *__init_refok  acpi_os_map_memory(acpi_physical_address phys, acpi_size size)  {  	struct acpi_ioremap *map, *tmp_map; -	unsigned long flags, pg_sz; +	unsigned long flags;  	void __iomem *virt; -	phys_addr_t pg_off; +	acpi_physical_address pg_off; +	acpi_size pg_sz;  	if (phys > ULONG_MAX) {  		printk(KERN_ERR PREFIX "Cannot map memory that high\n"); @@ -320,7 +322,7 @@ acpi_os_map_memory(acpi_physical_address phys, acpi_size size)  	pg_off = round_down(phys, PAGE_SIZE);  	pg_sz = round_up(phys + size, PAGE_SIZE) - pg_off; -	virt = ioremap_cache(pg_off, pg_sz); +	virt = acpi_os_ioremap(pg_off, pg_sz);  	if (!virt) {  		kfree(map);  		return NULL; @@ -642,7 +644,7 @@ acpi_os_read_memory(acpi_physical_address phys_addr, u32 * value, u32 width)  	virt_addr = acpi_map_vaddr_lookup(phys_addr, size);  	rcu_read_unlock();  	if (!virt_addr) { -		virt_addr = ioremap_cache(phys_addr, size); +		virt_addr = acpi_os_ioremap(phys_addr, size);  		unmap = 1;  	}  	if (!value) @@ -678,7 +680,7 @@ acpi_os_write_memory(acpi_physical_address phys_addr, u32 value, u32 width)  	virt_addr = acpi_map_vaddr_lookup(phys_addr, size);  	rcu_read_unlock();  	if (!virt_addr) { -		virt_addr = ioremap_cache(phys_addr, size); +		virt_addr = acpi_os_ioremap(phys_addr, size);  		unmap = 1;  	}  |