of/address: use range parser for of_dma_get_range
authorRob Herring <robh@kernel.org>
Thu, 6 Feb 2020 14:02:30 +0000 (14:02 +0000)
committerRob Herring <robh@kernel.org>
Fri, 14 Feb 2020 21:20:07 +0000 (15:20 -0600)
commit7a8b64d17e35810dc3176fe61208b45c15d25402
tree30ae047d646eb370867af3cc44ef624e58547113
parentbc5e522ec47174770a75df0a76d90f9ebb20132e
of/address: use range parser for of_dma_get_range

of_dma_get_range() does the same ranges parsing as
of_pci_range_parser_one(), so let's refactor of_dma_get_range() to use
it instead.

This commit is no functional change. Subsequent commits will parse more
than the 1st dma-ranges entry.

Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/address.c