Skip to content

Commit 9135885

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

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

components/drivers/pinctrl/pinctrl.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ static rt_err_t ofw_pin_ctrl_confs_apply(struct rt_ofw_node *np, int index)
9292

9393
if (pinctrl_np)
9494
{
95+
if (!rt_ofw_data(pinctrl_np))
96+
{
97+
rt_platform_ofw_request(pinctrl_np);
98+
}
99+
95100
pinctrl = rt_ofw_data(pinctrl_np);
96101

97102
rt_ofw_node_put(pinctrl_np);

0 commit comments

Comments
 (0)