OSDN Git Service

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>
Wed, 8 Apr 2015 21:52:33 +0000 (23:52 +0200)
commit68ba7cb083300409eb92282417db4c179081ade3
tree9ba6369afa8edd301cce462d34bbd287e09e2c12
parent36fe97635826d54d07c51a5953148235b7dd6a04
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