]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Merge branch 'net-stmmac-anarion-cleanups'
authorJakub Kicinski <kuba@kernel.org>
Tue, 15 Apr 2025 15:36:04 +0000 (08:36 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Apr 2025 15:36:05 +0000 (08:36 -0700)
commit9d9bc1a464028e279e72141ff1edef240bb01563
tree93a3907c0babb5c93bc17f55e49508bae2027d96
parent2f8cc49d869cbfa6f72068774b3de420536c21ac
parenta1afabef915cced083ece76cc364d22e0a66192c
Merge branch 'net-stmmac-anarion-cleanups'

Russell King says:

====================
net: stmmac: anarion: cleanups

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.

Not tested on hardware.
====================

Link: https://patch.msgid.link/Z_zP9BvZlqeq3Ssl@shell.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>