diff options
author | Vladimir Oltean <[email protected]> | 2021-05-18 20:49:24 +0300 |
---|---|---|
committer | David S. Miller <[email protected]> | 2021-05-18 13:47:36 -0700 |
commit | 86544c3de6a2185409c5a3d02f674ea223a14217 (patch) | |
tree | 92e7c07fa2d2489e2163086a65403d5f7feb468c /tools/perf/scripts/python/check-perf-trace.py | |
parent | e2bd6bad9c1e976674de7d714a5c1567281a0843 (diff) |
net: mdio: provide shim implementation of devm_of_mdiobus_register
Similar to the way in which of_mdiobus_register() has a fallback to the
non-DT based mdiobus_register() when CONFIG_OF is not set, we can create
a shim for the device-managed devm_of_mdiobus_register() which calls
devm_mdiobus_register() and discards the struct device_node *.
In particular, this solves a build issue with the qca8k DSA driver which
uses devm_of_mdiobus_register and can be compiled without CONFIG_OF.
Reported-by: Randy Dunlap <[email protected]>
Signed-off-by: Vladimir Oltean <[email protected]>
Acked-by: Randy Dunlap <[email protected]> # build-tested
Reviewed-by: Andrew Lunn <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions