net: stmmac: sun8i: use stmmac_pltfr_probe()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tue, 15 Apr 2025 10:15:53 +0000 (11:15 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 17 Apr 2025 01:25:16 +0000 (18:25 -0700)
commit4cc8b57753ef30650a5a326df0074d25f342aa84
treea54d76713c3c76ea667a5a322570145d53ae9b37
parent978d13b26ab31297e320dba1feb87f95c107961b
net: stmmac: sun8i: use stmmac_pltfr_probe()

Using stmmac_pltfr_probe() simplifies the probe function. This will not
only call plat_dat->init (sun8i_dwmac_init), but also plat_dat->exit
(sun8i_dwmac_exit) appropriately if stmmac_dvr_probe() fails. This
results in an overall simplification of the glue driver.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Link: https://patch.msgid.link/E1u4dKb-000dV7-3B@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c