OpenCloudOS-Kernel/arch/sh/boards/mach-se
Christoph Hellwig cdfee56232 driver core: initialize a default DMA mask for platform device
We still treat devices without a DMA mask as defaulting to 32-bits for
both mask, but a few releases ago we've started warning about such
cases, as they require special cases to work around this sloppyness.
Add a dma_mask field to struct platform_device so that we can initialize
the dma_mask pointer in struct device and initialize both masks to
32-bits by default, replacing similar functionality in m68k and
powerpc.  The arch_setup_pdev_archdata hooks is now unused and removed.

Note that the code looks a little odd with the various conditionals
because we have to support platform_device structures that are
statically allocated.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/r/20190816062435.881-7-hch@lst.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-08-22 09:41:55 -07:00
..
770x sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
7206 sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
7343 treewide: replace #include <asm/sizes.h> with #include <linux/sizes.h> 2019-05-14 19:52:52 -07:00
7721 sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
7722 treewide: replace #include <asm/sizes.h> with #include <linux/sizes.h> 2019-05-14 19:52:52 -07:00
7724 driver core: initialize a default DMA mask for platform device 2019-08-22 09:41:55 -07:00
7751 sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
7780 sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
board-se7619.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00