diff options
author | Vladimir Oltean <[email protected]> | 2024-01-04 16:00:30 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2024-01-05 11:56:35 +0000 |
commit | 7a898539391dccce00c3cb24d96a6ba80cef7f6d (patch) | |
tree | 24ecfcf19be01faf0109b06a8acd8d313775f911 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py | |
parent | cd4ba3ecced904cc8e48cde9ae3216889d139789 (diff) |
net: dsa: lantiq_gswip: ignore MDIO buses disabled in OF
If the "lantiq,xrx200-mdio" child has status = "disabled", the MDIO bus
creation should be avoided. Use of_device_is_available() to check for
that, and take advantage of 2 facts:
- of_device_is_available(NULL) returns false
- of_node_put(NULL) is a no-op
Signed-off-by: Vladimir Oltean <[email protected]>
Reviewed-by: Alvin Šipraga <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions