mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-22 12:54:37 +00:00
dm: syscon: Fix calling dev_dbg with an uninitialized device
We can't use dev_dbg here because we haven't bound to the device yet. Use log_debug instead. Signed-off-by: Sean Anderson <seanga2@gmail.com> Reviewed-by: Patrick Delaunay <patrick.delaunay@st.com> Tested-by: Patrick Delaunay <patrick.delaunay@st.com>
This commit is contained in:
parent
0ac83d080a
commit
46df2f87bd
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ static int syscon_probe_by_ofnode(ofnode node, struct udevice **devp)
|
||||||
|
|
||||||
/* found node with "syscon" compatible, not bounded to SYSCON UCLASS */
|
/* found node with "syscon" compatible, not bounded to SYSCON UCLASS */
|
||||||
if (!ofnode_device_is_compatible(node, "syscon")) {
|
if (!ofnode_device_is_compatible(node, "syscon")) {
|
||||||
dev_dbg(dev, "invalid compatible for syscon device\n");
|
log_debug("invalid compatible for syscon device\n");
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue