From: Sean Anderson Date: Tue, 15 Sep 2020 14:44:37 +0000 (-0400) Subject: dm: syscon: Fix calling dev_dbg with an uninitialized device X-Git-Tag: baikal/mips/sdk5.9~184^2~9^2~45 X-Git-Url: https://git.baikalelectronics.ru/?a=commitdiff_plain;h=478c8e11c846c15e893797ee205cf3525fd967e4;p=uboot.git 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 Reviewed-by: Patrick Delaunay Tested-by: Patrick Delaunay --- 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; }