[PATCH] Pass struct dev pointer to dma_cache_sync()
authorRalf Baechle <ralf@linux-mips.org>
Thu, 7 Dec 2006 04:38:56 +0000 (20:38 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Thu, 7 Dec 2006 16:39:41 +0000 (08:39 -0800)
commitd3fa72e4556ec1f04e46a0d561d9e785ecaa173d
tree9c9b51dbecc27e977135b4e4793ea3dc99e8ba66
parentf67637ee4b5d90d41160d755b9a8cca18c394586
[PATCH] Pass struct dev pointer to dma_cache_sync()

Pass struct dev pointer to dma_cache_sync()

dma_cache_sync() is ill-designed in that it does not have a struct device
pointer argument which makes proper support for systems that consist of a
mix of coherent and non-coherent DMA devices hard.  Change dma_cache_sync
to take a struct device pointer as first argument and fix all its callers
to pass it.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Cc: James Bottomley <James.Bottomley@steeleye.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
27 files changed:
Documentation/DMA-API.txt
arch/avr32/mm/dma-coherent.c
arch/mips/mm/dma-coherent.c
arch/mips/mm/dma-ip27.c
arch/mips/mm/dma-ip32.c
arch/mips/mm/dma-noncoherent.c
drivers/net/lasi_82596.c
drivers/scsi/53c700.c
drivers/scsi/53c700.h
drivers/serial/mpsc.c
include/asm-alpha/dma-mapping.h
include/asm-avr32/dma-mapping.h
include/asm-cris/dma-mapping.h
include/asm-frv/dma-mapping.h
include/asm-generic/dma-mapping.h
include/asm-i386/dma-mapping.h
include/asm-ia64/dma-mapping.h
include/asm-m68k/dma-mapping.h
include/asm-mips/dma-mapping.h
include/asm-parisc/dma-mapping.h
include/asm-powerpc/dma-mapping.h
include/asm-sh/dma-mapping.h
include/asm-sh64/dma-mapping.h
include/asm-sparc64/dma-mapping.h
include/asm-um/dma-mapping.h
include/asm-x86_64/dma-mapping.h
include/asm-xtensa/dma-mapping.h