Skip to contentSkip to conversation

of: address: Remove the incorrect and misleading comment

PATCH New Yuntao Wang 1 participant 1 message Nov 6, 2025 Device tree

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/of/address.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/of/address.c +0 -4
index f0f8f0dd191c..4034d798c55a 100644
@@ -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");
 }
 
Signature · 1 line
2.51.0