]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - include/linux/of_device.h
iommu: of: Handle IOMMU lookup failure with deferred probing or error
[linux.git] / include / linux / of_device.h
index af984551cc2bcb93f5cad0f11e801ccd22497059..2cacdd81062eb0ffbcd688c85e28cdb3dbc6ad0a 100644 (file)
@@ -55,7 +55,7 @@ static inline struct device_node *of_cpu_device_node_get(int cpu)
        return of_node_get(cpu_dev->of_node);
 }
 
-void of_dma_configure(struct device *dev, struct device_node *np);
+int of_dma_configure(struct device *dev, struct device_node *np);
 void of_dma_deconfigure(struct device *dev);
 #else /* CONFIG_OF */
 
@@ -104,8 +104,11 @@ static inline struct device_node *of_cpu_device_node_get(int cpu)
 {
        return NULL;
 }
-static inline void of_dma_configure(struct device *dev, struct device_node *np)
-{}
+
+static inline int of_dma_configure(struct device *dev, struct device_node *np)
+{
+       return 0;
+}
 static inline void of_dma_deconfigure(struct device *dev)
 {}
 #endif /* CONFIG_OF */