]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: DMA: Allow platforms to override only the post DMA hook
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 7 Apr 2015 20:34:01 +0000 (13:34 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 7 Apr 2015 23:13:12 +0000 (01:13 +0200)
commit181898570e00369c87590bedf5bfffe2debb358b
tree52047f2e37da3d3c5cd852769573c7514c773d6d
parent9769f55ebe4343b771dbe84cea1ea58ac38889d3
MIPS: DMA: Allow platforms to override only the post DMA hook

Instead of having platforms to copy the entirety of
mach-generic/dma-coherence.h, check whether these platforms have already
defined a plat_post_dma_flush hook, and if not, provide an inline stub.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Cc: linux-mips@linux-mips.org
Cc: cernekee@gmail.com
Cc: jogo@openwrt.org
Patchwork: https://patchwork.linux-mips.org/patch/9725/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/mach-generic/dma-coherence.h