mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-28 13:05:33 +08:00
[DM/FIXUP] Fixup pin depend auto
Signed-off-by: GuEe-GUI <2991707448@qq.com>
This commit is contained in:
parent
fed7c9acda
commit
ab0ca30150
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user