of: Merge of_address_to_resource() and of_pci_address_to_resource() implementations
authorRob Herring <robh@kernel.org>
Thu, 27 May 2021 19:45:47 +0000 (14:45 -0500)
committerRob Herring <robh@kernel.org>
Thu, 3 Jun 2021 01:59:29 +0000 (20:59 -0500)
commit67a3156453859ceb40dc4448b7a6a99ea0ad27c7
tree44e4612519f5e12a8cb01e9431b9224d954d3fe5
parentc3c0dc75774b488770f33598109161040d291367
of: Merge of_address_to_resource() and of_pci_address_to_resource() implementations

of_address_to_resource() and of_pci_address_to_resource() are almost the
same except the former takes an index and the latter takes a BAR number.
Now that __of_get_address() can take either one, refactor the functions
to use a common implementation.

Cc: Frank Rowand <frowand.list@gmail.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20210527194547.1287934-5-robh@kernel.org
drivers/of/address.c