diff options
| author | GuEe-GUI <[email protected]> | 2024-11-01 13:28:26 +0800 |
|---|---|---|
| committer | Rbb666 <[email protected]> | 2024-12-02 21:15:17 +0800 |
| commit | aa30e9804ae315777dd9ae2a7254adff36cf6b99 (patch) | |
| tree | 4231bf5fb7485a5400e49659aeb868492ab210cd | |
| parent | 7b7e4686afb6d3771d84f2c6200aee8c2a61003e (diff) | |
[DM/FIXUP] Fixup pin depend auto
Signed-off-by: GuEe-GUI <[email protected]>
| -rw-r--r-- | components/drivers/pin/dev_pin_ofw.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/components/drivers/pin/dev_pin_ofw.c b/components/drivers/pin/dev_pin_ofw.c index d42cd83076..f9497cf285 100644 --- a/components/drivers/pin/dev_pin_ofw.c +++ b/components/drivers/pin/dev_pin_ofw.c @@ -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) |
