staging: rtl8192u: remove redundant assignment to pointer crypt
[linux/fpc-iii.git] / arch / arm64 / include / asm / dma-mapping.h
blobbdcb0922a40c953d28c263cf46a01b0f46eb23f1
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Copyright (C) 2012 ARM Ltd.
4 */
5 #ifndef __ASM_DMA_MAPPING_H
6 #define __ASM_DMA_MAPPING_H
8 #ifdef __KERNEL__
10 #include <linux/types.h>
11 #include <linux/vmalloc.h>
13 #include <xen/xen.h>
14 #include <asm/xen/hypervisor.h>
16 static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
18 return NULL;
22 * Do not use this function in a driver, it is only provided for
23 * arch/arm/mm/xen.c, which is used by arm64 as well.
25 static inline bool is_device_dma_coherent(struct device *dev)
27 return dev->dma_coherent;
30 #endif /* __KERNEL__ */
31 #endif /* __ASM_DMA_MAPPING_H */