diff options
author | Eric Miao <eric.y.miao@gmail.com> | 2010-06-05 03:16:17 -0400 |
---|---|---|
committer | Eric Miao <eric.y.miao@gmail.com> | 2010-08-05 02:32:21 -0400 |
commit | 4fa5518c65df7a2c4b6c58061ac53d0b01228042 (patch) | |
tree | 3b3d86888f58ca1ef623e91d7bd41fb90ceae289 /arch/arm/common | |
parent | e478fe4cd50b86e95fadc415438b63fa94060b7d (diff) |
[ARM] pxa: remove now unnecessary dma_needs_bounce()
With a correct dev->dma_mask before calling dmabounce_register_dev(),
dma_needs_bounce() is not necessary.
The sa1111, though, is a bit complicated. Until it's fully understood
and fixed, dma_needs_bounce() for sa1111 is kept if CONFIG_SA1111 is
enabled with no side effect (with the condition of machine_is_*)
Thanks for Mike Rapoport to fix one error in the original version of
the patch and get this tested.
Acked-by: Mike Rapoport <mike@compulab.co.il>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Diffstat (limited to 'arch/arm/common')
-rw-r--r-- | arch/arm/common/it8152.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/arch/arm/common/it8152.c b/arch/arm/common/it8152.c index 7974baacafce..6c0913562455 100644 --- a/arch/arm/common/it8152.c +++ b/arch/arm/common/it8152.c | |||
@@ -263,14 +263,6 @@ static int it8152_pci_platform_notify_remove(struct device *dev) | |||
263 | return 0; | 263 | return 0; |
264 | } | 264 | } |
265 | 265 | ||
266 | int dma_needs_bounce(struct device *dev, dma_addr_t dma_addr, size_t size) | ||
267 | { | ||
268 | dev_dbg(dev, "%s: dma_addr %08x, size %08x\n", | ||
269 | __func__, dma_addr, size); | ||
270 | return (dev->bus == &pci_bus_type) && | ||
271 | ((dma_addr + size - PHYS_OFFSET) >= SZ_64M); | ||
272 | } | ||
273 | |||
274 | int __init it8152_pci_setup(int nr, struct pci_sys_data *sys) | 266 | int __init it8152_pci_setup(int nr, struct pci_sys_data *sys) |
275 | { | 267 | { |
276 | it8152_io.start = IT8152_IO_BASE + 0x12000; | 268 | it8152_io.start = IT8152_IO_BASE + 0x12000; |