bus/arm-cci: Streamline devicetree handling a bit
authorRobin Murphy <robin.murphy@arm.com>
Thu, 15 Feb 2018 18:51:44 +0000 (18:51 +0000)
committerArnd Bergmann <arnd@arndb.de>
Tue, 6 Mar 2018 16:26:48 +0000 (17:26 +0100)
commit3ee5e821f3a1affd406ff1031f4cf6d7b4f81ab3
tree1a8893df91968ea0a8aeb67e127dea72bcd6220f
parent03057f2626e955ebea88a668a6d7d699f836e5c0
bus/arm-cci: Streamline devicetree handling a bit

Rather than iterating over child nodes explicitly testing for
availability, we can just use the other helper which already subsumes
that check. Also, the availability check is already NULL-safe, so get
rid of a redundant check in cci_probe(), too.

Acked-by: Punit Agrawal <punit.agrawal@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/bus/arm-cci.c