Skip to content

Commit

Permalink
Fixup platform not free device in OFW
Browse files Browse the repository at this point in the history
Signed-off-by: GuEe-GUI <[email protected]>
  • Loading branch information
GuEe-GUI authored and mysterywolf committed Sep 3, 2024
1 parent 2ec69c3 commit 175a2ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/drivers/core/platform_ofw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 175a2ff

Please sign in to comment.