summaryrefslogtreecommitdiff
path: root/drivers/core
diff options
context:
space:
mode:
authorSean Anderson <seanga2@gmail.com>2020-09-15 17:44:37 +0300
committerTom Rini <trini@konsulko.com>2020-09-30 15:52:14 +0300
commit46df2f87bd9697a49b49f53d54a9e39da0684a7d (patch)
tree726ff710c856ce92b2f2bc41ba0d13dd1b5588d2 /drivers/core
parent0ac83d080a0044cd0d8f782ba12f02cf969d3004 (diff)
downloadu-boot-46df2f87bd9697a49b49f53d54a9e39da0684a7d.tar.xz
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>
Diffstat (limited to 'drivers/core')
-rw-r--r--drivers/core/syscon-uclass.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/core/syscon-uclass.c b/drivers/core/syscon-uclass.c
index 9cbda4ebda..5be1d527a0 100644
--- a/drivers/core/syscon-uclass.c
+++ b/drivers/core/syscon-uclass.c
@@ -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 */
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;
}