]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mfd: Inherit coherent_dma_mask from parent device
authorBoris BREZILLON <boris.brezillon@free-electrons.com>
Mon, 22 Sep 2014 19:37:55 +0000 (21:37 +0200)
committerLee Jones <lee.jones@linaro.org>
Fri, 26 Sep 2014 07:24:01 +0000 (08:24 +0100)
commit4f08df1b06bb4022fab5a2a916f455915856ed9e
treeb5c0deacc0f1c9cdba180b83770b83e4f360f656
parentab27c44754964aedd9f9ba74326d74e5e2a3c74f
mfd: Inherit coherent_dma_mask from parent device

dma_mask and dma_parms are already inherited from the parent device but
dma_coherent_mask was left uninitialized (set to zero thanks to kzalloc).
Set sub-device coherent_dma_mask to its parent value to simplify
sub-drivers making use of dma coherent helper functions (those drivers
currently have to explicitly set the dma coherent mask using
dma_set_coherent_mask function).

Signed-off-by: Boris BREZILLON <boris.brezillon@free-electrons.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/mfd-core.c