mbox series

[net-next,0/4] net: stmmac: anarion: cleanups

Message ID Z_p16taXJ1sOo4Ws@shell.armlinux.org.uk (mailing list archive)
Headers show
Series net: stmmac: anarion: cleanups | expand

Message

Russell King (Oracle) April 12, 2025, 2:17 p.m. UTC
A series of cleanups to the anarion glue driver.

Clean up anarion_config_dt() error handling, printing a human readable
error rather than the numeric errno, and use ERR_CAST().

Using a switch statement with incorrect "fallthrough;" for RGMII vs
non-RGMII is unnecessary when we have phy_interface_mode_is_rgmii().
Convert to use the helper.

Use stmmac_pltfr_probe() rahter than open-coding the call to the
init function (which stmmac_pltfr_probe() will do for us.)

Finally, convert to use devm_stmmac_pltfr_probe() which allows the
removal of the .remove initialiser in the driver structure.

 .../net/ethernet/stmicro/stmmac/dwmac-anarion.c    | 25 +++++++---------------
 1 file changed, 8 insertions(+), 17 deletions(-)