diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-07-04 09:34:33 +0200 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-07-04 09:39:56 +0200 |
commit | 5c8598fca1a359520623ed5409d23bb9e23d7da3 (patch) | |
tree | 16dd1ae0911bad1d22c213f9e59ef86f916c1c94 /arch/arm/common | |
parent | ARM: dmabounce: get rid of dma_needs_bounce global function (diff) | |
download | linux-5c8598fca1a359520623ed5409d23bb9e23d7da3.tar.xz linux-5c8598fca1a359520623ed5409d23bb9e23d7da3.zip |
ARM: dmabounce: no need to check dev->bus type in needs_bounce function
As the needs_bounce function is passed at DMA bounce register time,
we already know what the device bus type is, so we don't need to check
it each time the needs_bounce function is called.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/common')
-rw-r--r-- | arch/arm/common/it8152.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/common/it8152.c b/arch/arm/common/it8152.c index 80b49e1e0992..14ad62e16dd1 100644 --- a/arch/arm/common/it8152.c +++ b/arch/arm/common/it8152.c @@ -247,8 +247,7 @@ static int it8152_needs_bounce(struct device *dev, dma_addr_t dma_addr, size_t s { dev_dbg(dev, "%s: dma_addr %08x, size %08x\n", __func__, dma_addr, size); - return dev->bus == &pci_bus_type && - (dma_addr + size - PHYS_OFFSET) >= SZ_64M; + return (dma_addr + size - PHYS_OFFSET) >= SZ_64M; } /* |