summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuntao Wang <yuntao.wang@linux.dev>2025-11-12 22:35:20 +0800
committerRob Herring (Arm) <robh@kernel.org>2025-11-17 11:24:51 -0600
commitc7496597adbd85fb1d7293d2938ba21f12c212e4 (patch)
tree443f784f85e842fc38007cac31ad141c8b80ff4f
parent8b9ef71400a382fc5ad5ef98e9a3d11d02be784e (diff)
of/address: Remove the incorrect and misleading comment
The of_bus_default_match() function appears to have been copied from of_bus_default_flags_match() with some modifications. However, the comment was left unchanged and still describes the behavior of of_bus_default_flags_match(), it is incorrect and misleading, remove it. Signed-off-by: Yuntao Wang <yuntao.wang@linux.dev> Fixes: 6e5773d52f4a2d9c ("of/address: Fix WARN when attempting translating non-translatable addresses") Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://patch.msgid.link/20251112143520.233870-11-yuntao.wang@linux.dev Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
-rw-r--r--drivers/of/address.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/of/address.c b/drivers/of/address.c
index f0f8f0dd191c..4034d798c55a 100644
--- a/drivers/of/address.c
+++ b/drivers/of/address.c
@@ -328,10 +328,6 @@ static int of_bus_default_flags_match(struct device_node *np)
static int of_bus_default_match(struct device_node *np)
{
- /*
- * Check for presence first since of_bus_n_addr_cells() will warn when
- * walking parent nodes.
- */
return of_property_present(np, "#address-cells");
}