Skip to content

Commit 0a68a59

Browse files
Bartosz Golaszewskikuba-moo
authored andcommitted
net: stmmac: dwmac-generic: use stmmac_pltfr_probe()
Shrink the code and remove labels by using the new stmmac_pltfr_probe() function. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Link: https://lore.kernel.org/r/20230623100417.93592-7-brgl@bgdev.pl Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 3d5bf75 commit 0a68a59

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,12 @@ static int dwmac_generic_probe(struct platform_device *pdev)
4646
plat_dat->unicast_filter_entries = 1;
4747
}
4848

49-
/* Custom initialisation (if needed) */
50-
ret = stmmac_pltfr_init(pdev, plat_dat);
49+
ret = stmmac_pltfr_probe(pdev, plat_dat, &stmmac_res);
5150
if (ret)
5251
goto err_remove_config_dt;
5352

54-
ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res);
55-
if (ret)
56-
goto err_exit;
57-
5853
return 0;
5954

60-
err_exit:
61-
stmmac_pltfr_exit(pdev, plat_dat);
6255
err_remove_config_dt:
6356
if (pdev->dev.of_node)
6457
stmmac_remove_config_dt(pdev, plat_dat);

0 commit comments

Comments
 (0)