aboutsummaryrefslogtreecommitdiff
path: root/net/socket.c
diff options
context:
space:
mode:
authorRob Herring (Arm) <[email protected]>2024-11-08 13:35:48 -0600
committerRob Herring (Arm) <[email protected]>2024-11-08 13:41:34 -0600
commit64ee3cf096ac590e7da2ceac1c390546bff5e240 (patch)
tree7fc7d0e01ecbc3785afe952bed49f46f95ecce37 /net/socket.c
parent045b14ca5c3657dc6c16afa97a00dba17286d3e8 (diff)
of/address: Rework bus matching to avoid warnings
With warnings added for deprecated #address-cells/#size-cells handling, the DT address handling code causes warnings when used on nodes with no address. This happens frequently with calls to of_platform_populate() as it is perfectly acceptable to have devices without a 'reg' property. The desired behavior is to just silently return an error when retrieving an address. The warnings can be avoided by checking for "#address-cells" presence first and checking for an address property before fetching "#address-cells" and "#size-cells". Reported-by: Marek Szyprowski <[email protected]> Reported-by: Steven Price <[email protected]> Tested-by: Marek Szyprowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Herring (Arm) <[email protected]>
Diffstat (limited to 'net/socket.c')
0 files changed, 0 insertions, 0 deletions