path: root/arch/arm/include/asm/dma-mapping.h
diff options
authorLinus Torvalds <torvalds@linux-foundation.org>2016-10-02 15:23:00 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2016-10-02 15:23:00 -0700
commitf76d9c61d91343806e59335493806e87daf78947 (patch)
treee3c98a687783c5fbe9862646f455435fb6bfe3f8 /arch/arm/include/asm/dma-mapping.h
parentbe67d60ba944bdd38571b79bdcd506e34c0f16c1 (diff)
parent117e5e9c4cfcb7628f08de074fbfefec1bb678b7 (diff)
Merge branch 'fixes' of git://git.armlinux.org.uk/~rmk/linux-arm
Pull ARM fixes from Russell King: "Three relatively small fixes for ARM: - Roger noticed that dma_max_pfn() was calculating the upper limit wrongly, by adding the PFN offset of memory twice. - A fix from Robin to correct parsing of MPIDR values when the address size is larger than one BE32 unit. - A fix from Srinivas to ensure that we do not rely on the boot loader (or previous Linux kernel) setting the translation table base register a certain way in the decompressor, which can lead to crashes" * 'fixes' of git://git.armlinux.org.uk/~rmk/linux-arm: ARM: 8618/1: decompressor: reset ttbcr fields to use TTBR0 on ARMv7 ARM: 8617/1: dma: fix dma_max_pfn() ARM: 8616/1: dt: Respect property size when parsing CPUs
Diffstat (limited to 'arch/arm/include/asm/dma-mapping.h')
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/include/asm/dma-mapping.h b/arch/arm/include/asm/dma-mapping.h
index d009f7911ffc..bf02dbd9ccda 100644
--- a/arch/arm/include/asm/dma-mapping.h
+++ b/arch/arm/include/asm/dma-mapping.h
@@ -111,7 +111,7 @@ static inline dma_addr_t virt_to_dma(struct device *dev, void *addr)
/* The ARM override for dma_max_pfn() */
static inline unsigned long dma_max_pfn(struct device *dev)
- return PHYS_PFN_OFFSET + dma_to_pfn(dev, *dev->dma_mask);
+ return dma_to_pfn(dev, *dev->dma_mask);
#define dma_max_pfn(dev) dma_max_pfn(dev)