mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-21 00:27:19 +08:00
Fixup platform not free device in OFW
Signed-off-by: GuEe-GUI <2991707448@qq.com>
This commit is contained in:
parent
2ec69c3ce4
commit
175a2ff954
@ -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_clear_flag(np, RT_OFW_F_PLATFORM);
|
||||||
rt_ofw_node_put(np);
|
rt_ofw_node_put(np);
|
||||||
|
|
||||||
pdev->parent.ofw_node = RT_NULL;
|
rt_free(pdev);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user