hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/include/linux/of_device.h
....@@ -55,10 +55,15 @@
5555 return of_node_get(cpu_dev->of_node);
5656 }
5757
58
-int of_dma_configure(struct device *dev,
58
+int of_dma_configure_id(struct device *dev,
5959 struct device_node *np,
60
- bool force_dma);
61
-void of_dma_deconfigure(struct device *dev);
60
+ bool force_dma, const u32 *id);
61
+static inline int of_dma_configure(struct device *dev,
62
+ struct device_node *np,
63
+ bool force_dma)
64
+{
65
+ return of_dma_configure_id(dev, np, force_dma, NULL);
66
+}
6267 #else /* CONFIG_OF */
6368
6469 static inline int of_driver_match_device(struct device *dev,
....@@ -107,14 +112,19 @@
107112 return NULL;
108113 }
109114
115
+static inline int of_dma_configure_id(struct device *dev,
116
+ struct device_node *np,
117
+ bool force_dma,
118
+ const u32 *id)
119
+{
120
+ return 0;
121
+}
110122 static inline int of_dma_configure(struct device *dev,
111123 struct device_node *np,
112124 bool force_dma)
113125 {
114126 return 0;
115127 }
116
-static inline void of_dma_deconfigure(struct device *dev)
117
-{}
118128 #endif /* CONFIG_OF */
119129
120130 #endif /* _LINUX_OF_DEVICE_H */