Skip to content

Commit b0a5bfe

Browse files
GuEe-GUIRbb666
authored andcommitted
[DM/FIXUP] Fixup pinctrl depend auto
Signed-off-by: GuEe-GUI <[email protected]>
1 parent 858813a commit b0a5bfe

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

components/drivers/pinctrl/pinctrl.c

Lines changed: 7 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);
@@ -217,6 +222,8 @@ rt_err_t rt_pin_ctrl_confs_apply_by_name(struct rt_device *device, const char *n
217222
err = ofw_pin_ctrl_confs_apply_by_name(device->ofw_node, name);
218223
}
219224
#endif /* RT_USING_OFW */
225+
226+
RT_UNUSED(name);
220227
}
221228
else
222229
{

0 commit comments

Comments
 (0)