net: stmmac: sunxi: use stmmac_pltfr_probe()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tue, 15 Apr 2025 12:58:05 +0000 (13:58 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 18 Apr 2025 01:41:40 +0000 (18:41 -0700)
commitdd2cdba4709f6a4e32e7e323d23922e99916a781
treebb1f44a164271dd0d1802877d1118c9de2038c4e
parenta27d798fd83c8c7c4d8c549e04c83beb3c1dc214
net: stmmac: sunxi: use stmmac_pltfr_probe()

Rather than open-coding the calls to sun7i_gmac_init() and
sun7i_gmac_exit() in the probe function, use stmmac_pltfr_probe()
which will automatically call the plat_dat->init() and plat_dat->exit()
methods appropriately. This simplifies the code.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/E1u4frZ-000nMl-BB@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c