diff options
author | Rob Herring <robh@kernel.org> | 2023-08-23 21:09:42 +0200 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2023-08-29 22:02:00 +0200 |
commit | 09959520d2b0853a16962d245acfdc995d1b0da9 (patch) | |
tree | 0fa636dabf14a2bfd6bb059ce01fc81522935065 /drivers/net/ethernet/stmicro/stmmac/dwmac-imx.c | |
parent | Merge tag 'arm-soc/for-6.6/drivers' of https://github.com/Broadcom/stblinux i... (diff) | |
download | linux-09959520d2b0853a16962d245acfdc995d1b0da9.tar.xz linux-09959520d2b0853a16962d245acfdc995d1b0da9.zip |
bus: fsl-mc: Use common ranges functions
Since commit 3d5089c4263d ("of/address: Add support for 3 address cell
bus"), the DT address functions can handle translating buses with 3
address cells. Replace the custom code with the for_each_of_range()
iterator.
The original code had fallbacks to get "#address-cells"/"#size-cells"
from the bus parent node if they are missing. This is non-standard
behavior, and AFAICT the upstream .dts files never relied on that.
Reviewed-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Tested-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20230823190958.2717267-1-robh@kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/dwmac-imx.c')
0 files changed, 0 insertions, 0 deletions