mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
![Christoph Hellwig](/assets/img/avatar_default.png)
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);
|