diff options
| author | GuEe-GUI <[email protected]> | 2026-06-30 14:22:08 +0800 |
|---|---|---|
| committer | Rbb666 <[email protected]> | 2026-06-30 15:53:44 +0800 |
| commit | 196488fd7f726b7b642bed22682b845dfe6ad369 (patch) | |
| tree | fd84a8b55a4ecb067d4afea28bec70a2059461ba /components | |
| parent | b5b85006d4399f56fe5ac2138213367aedf11cbe (diff) | |
[dm][graphic] fixup the simple framebuffer regulator check
Signed-off-by: GuEe-GUI <[email protected]>
Diffstat (limited to 'components')
| -rw-r--r-- | components/drivers/graphic/framebuffer/fb-simple.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/components/drivers/graphic/framebuffer/fb-simple.c b/components/drivers/graphic/framebuffer/fb-simple.c index 55f80542cf..5847926539 100644 --- a/components/drivers/graphic/framebuffer/fb-simple.c +++ b/components/drivers/graphic/framebuffer/fb-simple.c @@ -111,6 +111,11 @@ static rt_err_t simplefb_regulator_probe(struct simplefb *sfb, } } + if (!sfb->supplys_nr) + { + return RT_EOK; + } + sfb->supplys = rt_calloc(sfb->supplys_nr, sizeof(sfb->supplys[0])); if (!sfb->supplys) |
