diff options
author | Joerg Roedel <jroedel@suse.de> | 2016-04-04 17:49:19 +0200 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2016-04-19 17:25:14 -0500 |
commit | 2021bd01ffccf2728a591070008d7de5bc41306a (patch) | |
tree | 927fe82263ab52e239fdebfef9f8f47ead760442 /drivers/of/unittest.c | |
parent | cd209b412c8a5d632b51af1e45576f0d00b8105f (diff) | |
download | talos-obmc-linux-2021bd01ffccf2728a591070008d7de5bc41306a.tar.gz talos-obmc-linux-2021bd01ffccf2728a591070008d7de5bc41306a.zip |
of: Remove counting special case from __of_parse_phandle_with_args()
The index = -1 case in __of_parse_phandle_with_args() is
used to just return the number of phandles. That special
case needs extra handling, so move it to the place where it
is needed: of_count_phandle_with_args().
This allows to further simplify __of_parse_phandle_with_args()
later on.
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/of/unittest.c')
0 files changed, 0 insertions, 0 deletions