Skip to content

Commit ab0ca30

Browse files
committed
[DM/FIXUP] Fixup pin depend auto
Signed-off-by: GuEe-GUI <[email protected]>
1 parent fed7c9a commit ab0ca30

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

components/drivers/pin/dev_pin_ofw.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ rt_ssize_t rt_ofw_get_named_pin(struct rt_ofw_node *np, const char *propname, in
5959
}
6060

6161
pin_dev_np = pin_args.data;
62+
63+
if (!rt_ofw_data(pin_dev_np))
64+
{
65+
rt_platform_ofw_request(pin_dev_np);
66+
}
67+
6268
pin_dev = rt_ofw_data(pin_dev_np);
6369

6470
if (!pin_dev)

0 commit comments

Comments
 (0)