Commit c7496597 authored by Yuntao Wang's avatar Yuntao Wang Committed by Rob Herring (Arm)
Browse files

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: default avatarYuntao Wang <yuntao.wang@linux.dev>
Fixes: 6e5773d5 ("of/address: Fix WARN when attempting translating non-translatable addresses")
Reviewed-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/20251112143520.233870-11-yuntao.wang@linux.dev


Signed-off-by: default avatarRob Herring (Arm) <robh@kernel.org>
parent 8b9ef714
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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");
}