[PATCH net-next] net: stmmac: sun8i: use stmmac_pltfr_probe()
Corentin Labbe
clabbe.montjoie at gmail.com
Tue Apr 15 06:56:07 PDT 2025
Le Tue, Apr 15, 2025 at 11:15:53AM +0100, Russell King (Oracle) a écrit :
> 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 at armlinux.org.uk>
> ---
> drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 10 ++--------
> 1 file changed, 2 insertions(+), 8 deletions(-)
>
Tested-by: Corentin Labbe <clabbe.montjoie at gmail.com>
Tested-on: sun50i-h6-pine-h64
Tested-on: sun8i-a83t-bananapi-m3
Thanks
More information about the linux-arm-kernel
mailing list