Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Yuntao Wang and committed by
Rob Herring (Arm)
c7496597 8b9ef714

-4
-4
drivers/of/address.c
··· 328 328 329 329 static int of_bus_default_match(struct device_node *np) 330 330 { 331 - /* 332 - * Check for presence first since of_bus_n_addr_cells() will warn when 333 - * walking parent nodes. 334 - */ 335 331 return of_property_present(np, "#address-cells"); 336 332 } 337 333