of/address: Introduce of_get_next_dma_parent() helper
authorRobin Murphy <robin.murphy@arm.com>
Wed, 3 Jul 2019 17:23:01 +0000 (18:23 +0100)
committerRob Herring <robh@kernel.org>
Tue, 8 Oct 2019 18:50:22 +0000 (13:50 -0500)
commit862ab5578f754117742c8b8c8e5ddf98bdb190ba
tree24dcec3ad07c3c192ee710f2fd33173c22573363
parent76dd7068e32cec3389474d6f69ffd4d0536172da
of/address: Introduce of_get_next_dma_parent() helper

Add of_get_next_dma_parent() helper which is similar to
__of_get_dma_parent(), but can be used in iterators and decrements the
ref count on the prior parent.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Reviewed-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/address.c