m68k: Set default dma mask for platform devices
authorFinn Thain <fthain@telegraphics.com.au>
Thu, 17 May 2018 10:07:13 +0000 (20:07 +1000)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Thu, 31 May 2018 07:02:21 +0000 (09:02 +0200)
commitb12c8a70643ffe2598c572cd206e4f68c524eb6f
tree551cc2b429bc08d3827de079239a91ca6a5a49e1
parent3f90f9ef2dda316d64e420d5d51ba369587ccc55
m68k: Set default dma mask for platform devices

This avoids a WARNING splat when loading the macsonic or macmace driver.
Please see commit 205e1b7f51e4 ("dma-mapping: warn when there is no
coherent_dma_mask").

This implementation of arch_setup_pdev_archdata() differs from the
powerpc one, in that this one avoids clobbering a device dma mask
which has already been initialized.

Cc: Christoph Hellwig <hch@lst.de>
Cc: Greg Ungerer <gerg@linux-m68k.org>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Acked-by: Greg Ungerer <gerg@linux-m68k.org>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/kernel/dma.c