From 175a2ff954a8ad6ce9a1739c8338b665b6abef80 Mon Sep 17 00:00:00 2001 From: GuEe-GUI <2991707448@qq.com> Date: Tue, 9 Jul 2024 17:17:00 +0800 Subject: [PATCH] Fixup platform not free device in OFW Signed-off-by: GuEe-GUI <2991707448@qq.com> --- components/drivers/core/platform_ofw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/drivers/core/platform_ofw.c b/components/drivers/core/platform_ofw.c index d1c0f774e0..3a5554f235 100644 --- a/components/drivers/core/platform_ofw.c +++ b/components/drivers/core/platform_ofw.c @@ -248,7 +248,7 @@ rt_err_t rt_platform_ofw_free(struct rt_platform_device *pdev) rt_ofw_node_clear_flag(np, RT_OFW_F_PLATFORM); rt_ofw_node_put(np); - pdev->parent.ofw_node = RT_NULL; + rt_free(pdev); } } else