]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: stmmac: anarion: use stmmac_pltfr_probe()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Mon, 14 Apr 2025 09:06:10 +0000 (10:06 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Apr 2025 15:36:02 +0000 (08:36 -0700)
commit5956527e26ffcdfe2f9698c9872b91dd8814d997
tree1096e56d2623c47fecd7a4b46d2a0e8ef574b5a9
parenta55ec9c811aa25504951113b45e1df60ab6d751c
net: stmmac: anarion: use stmmac_pltfr_probe()

Rather than open-coding the call to anarion_gmac_init() and then
stmmac_dvr_probe(), omitting the cleanup of calling
anarion_gmac_exit(), use stmmac_pltfr_probe() which will handle this
for us.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/E1u4Fla-000XjM-Bw@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c