diff options
| author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2017-10-27 15:55:13 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2017-11-01 11:47:02 +0900 |
| commit | 5b32fe070c2ddf31adc42c26dab8af346b652538 (patch) | |
| tree | a7d74b24003397edc058bd2f80571a9b82eb2480 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | bpf: reduce verifier memory consumption (diff) | |
| download | linux-5b32fe070c2ddf31adc42c26dab8af346b652538.tar.gz linux-5b32fe070c2ddf31adc42c26dab8af346b652538.zip | |
net: dsa: get ports within parsing code
There is no point into hiding the -EINVAL error code in ERR_PTR from a
dsa_get_ports function, simply get the "ports" node directly from within
the dsa_parse_ports_dn function.
This also has the effect to make the pdata and device tree handling code
symmetrical inside _dsa_register_switch.
At the same time, rename dsa_parse_ports_dn to dsa_parse_ports_of
because _of is a more common suffix for device tree parsing functions.
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
