soc: ti: pruss: fix referenced node in error message
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 21 Jun 2021 18:08:28 +0000 (20:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 09:54:12 +0000 (10:54 +0100)
[ Upstream commit 8aa35e0bb5eaa42bac415ad0847985daa7b4890c ]

So far, "(null)" is reported for the node that is missing clocks.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Acked-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Link: https://lore.kernel.org/r/d6e24953-ea89-fd1c-6e16-7a0142118054@siemens.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/soc/ti/pruss.c

index cc0b4ad7a3d34fb06654f0f04c2ef37c12d496a7..30695172a508f610d9571f841aa0461701f905db 100644 (file)
@@ -131,7 +131,7 @@ static int pruss_clk_init(struct pruss *pruss, struct device_node *cfg_node)
 
        clks_np = of_get_child_by_name(cfg_node, "clocks");
        if (!clks_np) {
-               dev_err(dev, "%pOF is missing its 'clocks' node\n", clks_np);
+               dev_err(dev, "%pOF is missing its 'clocks' node\n", cfg_node);
                return -ENODEV;
        }