summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuEe-GUI <[email protected]>2024-07-09 17:17:00 +0800
committerMeco Man <[email protected]>2024-09-03 19:49:47 -0400
commit175a2ff954a8ad6ce9a1739c8338b665b6abef80 (patch)
treed680f55c872c7cdf6d1f6fa38e9daa705a8464b5
parent2ec69c3ce43f123748c52140c40ad24e6d4b3b10 (diff)
Fixup platform not free device in OFW
Signed-off-by: GuEe-GUI <[email protected]>
-rw-r--r--components/drivers/core/platform_ofw.c2
1 files changed, 1 insertions, 1 deletions
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