mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-01 17:56:50 +07:00
c190ab0b2a
This adds dma_get_ops hook to struct ia64_machine_vector. We use dma_get_ops() in arch/ia64/kernel/dma-mapping.c, which simply returns the global dma_ops. This is for removing hwsw_dma_ops. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Acked-by: Tony Luck <tony.luck@intel.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
11 lines
195 B
C
11 lines
195 B
C
#include <linux/dma-mapping.h>
|
|
|
|
struct dma_mapping_ops *dma_ops;
|
|
EXPORT_SYMBOL(dma_ops);
|
|
|
|
struct dma_mapping_ops *dma_get_ops(struct device *dev)
|
|
{
|
|
return dma_ops;
|
|
}
|
|
EXPORT_SYMBOL(dma_get_ops);
|