]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/dm/device.h
dm: add of_match_ptr() macro
[karo-tx-uboot.git] / include / dm / device.h
index c8a4072bcf7d60d2fb6cdaa24cc7fbb77946a76a..e08d496e6a123cfbb1df5ea3a74d65a7f79b5988 100644 (file)
@@ -96,6 +96,12 @@ struct udevice_id {
        ulong data;
 };
 
+#ifdef CONFIG_OF_CONTROL
+#define of_match_ptr(_ptr)     (_ptr)
+#else
+#define of_match_ptr(_ptr)     NULL
+#endif /* CONFIG_OF_CONTROL */
+
 /**
  * struct driver - A driver for a feature or peripheral
  *