Skip to content

Commit 40db9f1

Browse files
Bartosz Golaszewskikuba-moo
authored andcommitted
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>
1 parent 5b0acf8 commit 40db9f1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/net/ethernet/stmicro/stmmac/dwmac-generic.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ static int dwmac_generic_probe(struct platform_device *pdev)
5858
return 0;
5959

6060
err_exit:
61-
if (plat_dat->exit)
62-
plat_dat->exit(pdev, plat_dat->bsp_priv);
61+
stmmac_pltfr_exit(pdev, plat_dat);
6362
err_remove_config_dt:
6463
if (pdev->dev.of_node)
6564
stmmac_remove_config_dt(pdev, plat_dat);

0 commit comments

Comments
 (0)