mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 14:19:16 +00:00
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>
This commit is contained in:
parent
3d5bf75d76
commit
0a68a59493
1 changed files with 1 additions and 8 deletions
|
@ -46,19 +46,12 @@ static int dwmac_generic_probe(struct platform_device *pdev)
|
|||
plat_dat->unicast_filter_entries = 1;
|
||||
}
|
||||
|
||||
/* Custom initialisation (if needed) */
|
||||
ret = stmmac_pltfr_init(pdev, plat_dat);
|
||||
ret = stmmac_pltfr_probe(pdev, plat_dat, &stmmac_res);
|
||||
if (ret)
|
||||
goto err_remove_config_dt;
|
||||
|
||||
ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res);
|
||||
if (ret)
|
||||
goto err_exit;
|
||||
|
||||
return 0;
|
||||
|
||||
err_exit:
|
||||
stmmac_pltfr_exit(pdev, plat_dat);
|
||||
err_remove_config_dt:
|
||||
if (pdev->dev.of_node)
|
||||
stmmac_remove_config_dt(pdev, plat_dat);
|
||||
|
|
Loading…
Reference in a new issue