of: address: Remove duplicated functions
authorHerve Codina <herve.codina@bootlin.com>
Tue, 17 Oct 2023 11:02:17 +0000 (13:02 +0200)
committerRob Herring <robh@kernel.org>
Thu, 26 Oct 2023 14:07:14 +0000 (09:07 -0500)
commit3eb030c60835668997d5763b1a0c7938faf169f6
tree5a09eca3a92fbe6e4022b9cbeb8f30351a634a4e
parent42604f8eb7ba04b589375049cc76282dad4677d2
of: address: Remove duplicated functions

The recently added of_bus_default_flags_translate() performs the exact
same operation as of_bus_pci_translate() and of_bus_isa_translate().

Avoid duplicated code replacing both of_bus_pci_translate() and
of_bus_isa_translate() with of_bus_default_flags_translate().

Signed-off-by: Herve Codina <herve.codina@bootlin.com>
Link: https://lore.kernel.org/r/20231017110221.189299-3-herve.codina@bootlin.com
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/address.c