summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2024-01-11 09:50:25 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-01-25 14:33:36 -0800
commitd35bdf57d4c1ea706d0a23712611ab97a556611d (patch)
tree0d0ad0fec1f7493934f434fc8099599de78f3173
parent26b4d702c44f9e5cf3c5c001ae619a4a001889db (diff)
downloadlinux-stable-d35bdf57d4c1ea706d0a23712611ab97a556611d.tar.gz
linux-stable-d35bdf57d4c1ea706d0a23712611ab97a556611d.tar.bz2
linux-stable-d35bdf57d4c1ea706d0a23712611ab97a556611d.zip
of: unittest: Fix of_count_phandle_with_args() expected value message
[ Upstream commit 716089b417cf98d01f0dc1b39f9c47e1d7b4c965 ] The expected result value for the call to of_count_phandle_with_args() was updated from 7 to 8, but the accompanying error message was forgotten. Fixes: 4dde83569832f937 ("of: Fix double free in of_parse_phandle_with_args_map") Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/r/20240111085025.2073894-1-geert+renesas@glider.be Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r--drivers/of/unittest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c
index 52f2943be5b5..8abd541b811d 100644
--- a/drivers/of/unittest.c
+++ b/drivers/of/unittest.c
@@ -496,7 +496,7 @@ static void __init of_unittest_parse_phandle_with_args_map(void)
}
rc = of_count_phandle_with_args(np, "phandle-list", "#phandle-cells");
- unittest(rc == 8, "of_count_phandle_with_args() returned %i, expected 7\n", rc);
+ unittest(rc == 8, "of_count_phandle_with_args() returned %i, expected 8\n", rc);
for (i = 0; i < 9; i++) {
bool passed = true;