mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 08:58:07 +00:00
11ddce1545
Instead of letting the architecture supply all of dma_set_mask just give it an additional hook selected by Kconfig. Signed-off-by: Christoph Hellwig <hch@lst.de> Tested-by: Christian Zigotzky <chzigotzky@xenosoft.de> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
12 lines
279 B
C
12 lines
279 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#include <linux/dma-mapping.h>
|
|
#include <linux/export.h>
|
|
#include <asm/machdep.h>
|
|
|
|
void arch_dma_set_mask(struct device *dev, u64 dma_mask)
|
|
{
|
|
if (ppc_md.dma_set_mask)
|
|
ppc_md.dma_set_mask(dev, dma_mask);
|
|
}
|
|
EXPORT_SYMBOL(arch_dma_set_mask);
|