mbox series

[net-next,0/3] use more devm

Message ID 20240812190700.14270-1-rosenp@gmail.com (mailing list archive)
Headers show
Series use more devm | expand

Message

Rosen Penev Aug. 12, 2024, 7:06 p.m. UTC
Some of these were introduced after the driver got introduced. In any
case, using more devm allows removal of the remove function and overall
simplifies the code. All of these were tested on a TP-LINK Archer C7v2.

Rosen Penev (3):
  net: ag71xx: use devm_clk_get_enabled
  net: ag71xx: use devm for of_mdiobus_register
  net: ag71xx: use devm for register_netdev

 drivers/net/ethernet/atheros/ag71xx.c | 84 ++++++---------------------
 1 file changed, 19 insertions(+), 65 deletions(-)