mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 14:10:43 +00:00
video: stm32_ltdc: Convert to use APIs which support live DT
Use ofnode_ or dev_ APIs instead of fdt_ and fdtdec_ APIs so that the driver can support live DT. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by: Yannick Fertré <yannick.fertre@st.com> Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
This commit is contained in:
parent
10bccd0dd3
commit
28c6ba861c
1 changed files with 1 additions and 2 deletions
|
@ -366,8 +366,7 @@ static int stm32_ltdc_probe(struct udevice *dev)
|
|||
|
||||
ret = panel_get_display_timing(panel, &timings);
|
||||
if (ret) {
|
||||
ret = fdtdec_decode_display_timing(gd->fdt_blob,
|
||||
dev_of_offset(panel),
|
||||
ret = ofnode_decode_display_timing(dev_ofnode(panel),
|
||||
0, &timings);
|
||||
if (ret) {
|
||||
dev_err(dev, "decode display timing error %d\n", ret);
|
||||
|
|
Loading…
Reference in a new issue