Commit 4450e7d4 authored by Bartosz Golaszewski's avatar Bartosz Golaszewski Committed by Jakub Kicinski

net: stmmac: dwmac-generic: use stmmac_pltfr_init()

Shrink the code in dwmac-generic by using the new stmmac_pltfr_init()
helper.
Signed-off-by: default avatarBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Link: https://lore.kernel.org/r/20230623100417.93592-3-brgl@bgdev.plSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 97117eb5
...@@ -47,11 +47,9 @@ static int dwmac_generic_probe(struct platform_device *pdev) ...@@ -47,11 +47,9 @@ static int dwmac_generic_probe(struct platform_device *pdev)
} }
/* Custom initialisation (if needed) */ /* Custom initialisation (if needed) */
if (plat_dat->init) { ret = stmmac_pltfr_init(pdev, plat_dat);
ret = plat_dat->init(pdev, plat_dat->bsp_priv); if (ret)
if (ret) goto err_remove_config_dt;
goto err_remove_config_dt;
}
ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res);
if (ret) if (ret)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment