mbox series

[net-next,0/5] net: fsl_pq_mdio: use devm

Message ID 20241115204149.6887-1-rosenp@gmail.com (mailing list archive)
Headers show
Series net: fsl_pq_mdio: use devm | expand

Message

Rosen Penev Nov. 15, 2024, 8:41 p.m. UTC
Various devm conversions to simplify probe and remove the remove
function.

Tested on WatchGuard T10, where devm_platform_get_and_ioremap_resource
was failing. Added a note why.

Rosen Penev (5):
  net: fsl_pq_mdio: use dev variable in _probe
  net: fsl_pq_mdio: use devm for mdiobus_alloc_size
  net: fsl_pq_mdio: use platform_get_resource
  net: fsl_pq_mdio: use devm for of_iomap
  net: fsl_pq_mdio: return directly in probe

 drivers/net/ethernet/freescale/fsl_pq_mdio.c | 92 +++++++-------------
 1 file changed, 31 insertions(+), 61 deletions(-)