diff options
author | David S. Miller <davem@davemloft.net> | 2020-04-22 12:19:55 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-04-22 12:19:55 -0700 |
commit | 58989d7cf6eefc7bc63b63739523e9319a8cfd81 (patch) | |
tree | 72992de26e44751843a1e4884d85c327bd68047e /net/sched/act_ct.c | |
parent | 4406d36dfdf1fbd954400e16ffeb915c1907d58a (diff) | |
parent | 0785dad48003408da27579845db2f83c024636df (diff) | |
download | linux-58989d7cf6eefc7bc63b63739523e9319a8cfd81.tar.bz2 |
Merge branch 'net-phy-add-device-managed-devm_mdiobus_register'
Heiner Kallweit says:
====================
net: phy: add device-managed devm_mdiobus_register
If there's no special ordering requirement for mdiobus_unregister(),
then driver code can be simplified by using a device-managed version
of mdiobus_register(). Prerequisite is that bus allocation has been
done device-managed too. Else mdiobus_free() may be called whilst
bus is still registered, resulting in a BUG_ON(). Therefore let
devm_mdiobus_register() return -EPERM if bus was allocated
non-managed.
First user of the new functionality is r8169 driver.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/act_ct.c')
0 files changed, 0 insertions, 0 deletions