mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-22 17:01:14 +00:00
net: stmmac: dwmac-generic: use stmmac_pltfr_exit()
Shrink the code in dwmac-generic by using the new stmmac_pltfr_exit() helper. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Link: https://lore.kernel.org/r/20230623100417.93592-5-brgl@bgdev.pl Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
5b0acf8dd2
commit
40db9f1ddf
1 changed files with 1 additions and 2 deletions
|
@ -58,8 +58,7 @@ static int dwmac_generic_probe(struct platform_device *pdev)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
err_exit:
|
err_exit:
|
||||||
if (plat_dat->exit)
|
stmmac_pltfr_exit(pdev, plat_dat);
|
||||||
plat_dat->exit(pdev, plat_dat->bsp_priv);
|
|
||||||
err_remove_config_dt:
|
err_remove_config_dt:
|
||||||
if (pdev->dev.of_node)
|
if (pdev->dev.of_node)
|
||||||
stmmac_remove_config_dt(pdev, plat_dat);
|
stmmac_remove_config_dt(pdev, plat_dat);
|
||||||
|
|
Loading…
Reference in a new issue