|
|
@@ -5,7 +5,7 @@
|
|
|
*/
|
|
|
|
|
|
#include <rtthread.h>
|
|
|
-#include <fdt.h>
|
|
|
+#include <dtb_node.h>
|
|
|
#if defined(RT_USING_POSIX)
|
|
|
#include <rtdevice.h> /* for wqueue_init */
|
|
|
#endif
|
|
|
@@ -73,7 +73,7 @@ rt_err_t rt_driver_device_match_with_dtb(const rt_driver_t drv,void *from_node,i
|
|
|
return -RT_ERROR;
|
|
|
}
|
|
|
|
|
|
- ret = fdt_find_all_active_compatible_node(from_node,drv->dev_match->compatible,node_list,max_dev_num,&active_dev_num);
|
|
|
+ ret = dtb_node_find_all_active_compatible_node(from_node,drv->dev_match->compatible,node_list,max_dev_num,&active_dev_num);
|
|
|
if((ret != 0) || (!active_dev_num))
|
|
|
{
|
|
|
return -RT_ERROR;
|