dm: core: convert of_machine_is_compatible to livetree
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Tue, 17 May 2022 12:37:05 +0000 (14:37 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 6 Jun 2022 22:01:21 +0000 (18:01 -0400)
commitbc8e09811e248287d1964ec6bba60c56235a23f2
tree2055a9667be18c00326c98041d03fe1de1660f50
parent87b0af9317cb4105f3f29cb0a4c28c7cd87ea65f
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 <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
drivers/core/device.c