Skip to content

Commit 4194f32

Browse files
Bartosz Golaszewskikuba-moo
authored andcommitted
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>
1 parent fc9ee2a commit 4194f32

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ static int qcom_ethqos_probe(struct platform_device *pdev)
787787
plat_dat->serdes_powerdown = qcom_ethqos_serdes_powerdown;
788788
}
789789

790-
return stmmac_dvr_probe(dev, plat_dat, &stmmac_res);
790+
return devm_stmmac_pltfr_probe(pdev, plat_dat, &stmmac_res);
791791
}
792792

793793
static const struct of_device_id qcom_ethqos_match[] = {
@@ -801,7 +801,6 @@ MODULE_DEVICE_TABLE(of, qcom_ethqos_match);
801801

802802
static struct platform_driver qcom_ethqos_driver = {
803803
.probe = qcom_ethqos_probe,
804-
.remove_new = stmmac_pltfr_remove_no_dt,
805804
.driver = {
806805
.name = "qcom-ethqos",
807806
.pm = &stmmac_pltfr_pm_ops,

0 commit comments

Comments
 (0)