Commit 5956527e authored by Russell King (Oracle)'s avatar Russell King (Oracle) Committed by Jakub Kicinski
Browse files

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: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/E1u4Fla-000XjM-Bw@rmk-PC.armlinux.org.uk


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent a55ec9c8
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -111,10 +111,9 @@ static int anarion_dwmac_probe(struct platform_device *pdev)

	plat_dat->init = anarion_gmac_init;
	plat_dat->exit = anarion_gmac_exit;
	anarion_gmac_init(pdev, gmac);
	plat_dat->bsp_priv = gmac;

	return stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res);
	return stmmac_pltfr_probe(pdev, plat_dat, &stmmac_res);
}

static const struct of_device_id anarion_dwmac_match[] = {