diff options
| author | Patrick Delaunay <[email protected]> | 2022-05-17 14:37:05 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2022-06-06 18:01:21 -0400 |
| commit | bc8e09811e248287d1964ec6bba60c56235a23f2 (patch) | |
| tree | 2055a9667be18c00326c98041d03fe1de1660f50 | |
| parent | 87b0af9317cb4105f3f29cb0a4c28c7cd87ea65f (diff) | |
dm: core: convert of_machine_is_compatible to livetree
Replace in the function of_machine_is_compatible(), the used API
fdt_node_check_compatible() by ofnode_device_is_compatible()
to support a live tree.
Signed-off-by: Patrick Delaunay <[email protected]>
Reviewed-by: Patrice Chotard <[email protected]>
| -rw-r--r-- | drivers/core/device.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/core/device.c b/drivers/core/device.c index 3ab2583df38..3199d6a1b73 100644 --- a/drivers/core/device.c +++ b/drivers/core/device.c @@ -1125,9 +1125,7 @@ bool device_is_compatible(const struct udevice *dev, const char *compat) bool of_machine_is_compatible(const char *compat) { - const void *fdt = gd->fdt_blob; - - return !fdt_node_check_compatible(fdt, 0, compat); + return ofnode_device_is_compatible(ofnode_root(), compat); } int dev_disable_by_path(const char *path) |
