net: stmmac: dwmac-qcom-ethqos: use devm_stmmac_pltfr_probe()
Use the devres variant of stmmac_pltfr_probe() and finally drop the remove() callback entirely. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Link: https://lore.kernel.org/r/20230623100417.93592-12-brgl@bgdev.pl Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
fc9ee2ac4f
commit
4194f32a4b
@ -787,7 +787,7 @@ static int qcom_ethqos_probe(struct platform_device *pdev)
|
||||
plat_dat->serdes_powerdown = qcom_ethqos_serdes_powerdown;
|
||||
}
|
||||
|
||||
return stmmac_dvr_probe(dev, plat_dat, &stmmac_res);
|
||||
return devm_stmmac_pltfr_probe(pdev, plat_dat, &stmmac_res);
|
||||
}
|
||||
|
||||
static const struct of_device_id qcom_ethqos_match[] = {
|
||||
@ -801,7 +801,6 @@ MODULE_DEVICE_TABLE(of, qcom_ethqos_match);
|
||||
|
||||
static struct platform_driver qcom_ethqos_driver = {
|
||||
.probe = qcom_ethqos_probe,
|
||||
.remove_new = stmmac_pltfr_remove_no_dt,
|
||||
.driver = {
|
||||
.name = "qcom-ethqos",
|
||||
.pm = &stmmac_pltfr_pm_ops,
|
||||
|
Loading…
Reference in New Issue
Block a user