sbus: Use of_get_child_by_name helper
authorRob Herring <robh@kernel.org>
Wed, 29 Aug 2018 20:03:37 +0000 (15:03 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Oct 2018 05:41:08 +0000 (22:41 -0700)
commitdf58f37b5d8f883fb18ba85e8d9a624154879832
treee451435e9eee69780594dcb693a733298ff1bdfd
parent0b9871a3a8cc7234c285b5d9bf66cc6712cfee7c
sbus: Use of_get_child_by_name helper

Use the of_get_child_by_name() helper instead of open coding searching
for the '/options' node. This removes directly accessing the name
pointer as well.

Cc: "David S. Miller" <davem@davemloft.net>
Cc: sparclinux@vger.kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/sbus/char/openprom.c