]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit91178ebaf3b3608e7bc14927888acb3696a1f4aa
tree1a8893df91968ea0a8aeb67e127dea72bcd6220f
parent03e33cbc65f973e9a92226b83091952e4eb635fb
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