summaryrefslogtreecommitdiff
path: root/include/dm
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-05-19 02:08:57 (GMT)
committerSimon Glass <sjg@chromium.org>2017-06-01 13:03:06 (GMT)
commit911f3aef357ca02ac0d06fdce6a7a3081594f272 (patch)
tree02a77f43e3a9437c56d9d0c4b81dcedace5afc72 /include/dm
parent3af86a4e23bba49b573aabeb83bb41c199686ef6 (diff)
downloadu-boot-911f3aef357ca02ac0d06fdce6a7a3081594f272.tar.xz
dm: core: Rename of_device_is_compatible()
The of_ prefix conflicts with the livetree version of this function. Rename it to avoid problems when we add livetree support. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/dm')
-rw-r--r--include/dm/device.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/dm/device.h b/include/dm/device.h
index 489cf33..4866f7c 100644
--- a/include/dm/device.h
+++ b/include/dm/device.h
@@ -563,7 +563,7 @@ int device_set_name(struct udevice *dev, const char *name);
void device_set_name_alloced(struct udevice *dev);
/**
- * of_device_is_compatible() - check if the device is compatible with the compat
+ * device_is_compatible() - check if the device is compatible with the compat
*
* This allows to check whether the device is comaptible with the compat.
*
@@ -572,7 +572,7 @@ void device_set_name_alloced(struct udevice *dev);
* device
* @return true if OK, false if the compatible is not found
*/
-bool of_device_is_compatible(struct udevice *dev, const char *compat);
+bool device_is_compatible(struct udevice *dev, const char *compat);
/**
* of_machine_is_compatible() - check if the machine is compatible with