commit | 5657933dbb6e25feaf5d8df8c88f96cdade693a3 | [log] [tgz] |
---|---|---|
author | Bart Van Assche <[email protected]> | Fri Jan 20 13:04:02 2017 -0800 |
committer | Doug Ledford <[email protected]> | Tue Jan 24 12:23:35 2017 -0500 |
tree | c08ad2e62db7f394abe3dc324d954129c2e2e34f | |
parent | 5299709d0a87342dadc1fc9850484fadeb488bf8 [diff] [blame] |
treewide: Move dma_ops from struct dev_archdata into struct device Some but not all architectures provide set_dma_ops(). Move dma_ops from struct dev_archdata into struct device such that it becomes possible on all architectures to configure dma_ops per device. Signed-off-by: Bart Van Assche <[email protected]> Acked-by: Greg Kroah-Hartman <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Cc: Boris Ostrovsky <[email protected]> Cc: David Woodhouse <[email protected]> Cc: Juergen Gross <[email protected]> Cc: H. Peter Anvin <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: [email protected] Cc: [email protected] Cc: Russell King <[email protected]> Cc: [email protected] Signed-off-by: Doug Ledford <[email protected]>
diff --git a/include/linux/device.h b/include/linux/device.h index 491b4c0c..46a5672 100644 --- a/include/linux/device.h +++ b/include/linux/device.h
@@ -921,6 +921,7 @@ struct device { #ifdef CONFIG_NUMA int numa_node; /* NUMA node this device is close to */ #endif + const struct dma_map_ops *dma_ops; u64 *dma_mask; /* dma mask (if dma'able device) */ u64 coherent_dma_mask;/* Like dma_mask, but for alloc_coherent mappings as