[DM/FIXUP] Fixup pin depend auto

Signed-off-by: GuEe-GUI <2991707448@qq.com>
This commit is contained in:
GuEe-GUI 2024-11-01 13:28:26 +08:00 committed by Rbb666
parent 7b7e4686af
commit aa30e9804a
1 changed files with 6 additions and 0 deletions

View File

@ -59,6 +59,12 @@ rt_ssize_t rt_ofw_get_named_pin(struct rt_ofw_node *np, const char *propname, in
}
pin_dev_np = pin_args.data;
if (!rt_ofw_data(pin_dev_np))
{
rt_platform_ofw_request(pin_dev_np);
}
pin_dev = rt_ofw_data(pin_dev_np);
if (!pin_dev)