Skip to content

Commit da440ba

Browse files
committed
[DM][REGULATOR] Fixup regulator find error
Just not regulator really, user can work ok, so remove the error no. Signed-off-by: GuEe-GUI <[email protected]>
1 parent 2fb53c8 commit da440ba

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

components/drivers/regulator/regulator.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ static void regulator_check_parent(struct rt_regulator_node *reg_np)
538538
rt_list_insert_after(&reg_np->parent->children_nodes, &reg_np->list);
539539
rt_ofw_node_put(np);
540540
}
541-
#endif
541+
#endif /* RT_USING_OFW */
542542
}
543543
}
544544

@@ -581,11 +581,10 @@ struct rt_regulator *rt_regulator_get(struct rt_device *dev, const char *id)
581581
reg_np = rt_ofw_data(np);
582582
rt_ofw_node_put(np);
583583
}
584-
#endif
584+
#endif /* RT_USING_OFW */
585585

586586
if (!reg_np)
587587
{
588-
reg = rt_err_ptr(-RT_ENOSYS);
589588
goto _end;
590589
}
591590

0 commit comments

Comments
 (0)