Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 701109ad authored by Sneh Shah's avatar Sneh Shah
Browse files

net: stmmac: Return from smmu platform remove and depopulate pdev



Return from smmu pdev remove and depopulate pdev.

Change-Id: I82ab6a8feebdc2eafa45019b5d3d754c6af99308
Signed-off-by: default avatarSneh Shah <snehshah@codeaurora.org>
parent 32339e54
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1704,6 +1704,11 @@ static int qcom_ethqos_remove(struct platform_device *pdev)
	struct qcom_ethqos *ethqos;
	int ret;

	if (of_device_is_compatible(pdev->dev.of_node, "qcom,emac-smmu-embedded")) {
		of_platform_depopulate(&pdev->dev);
		return 0;
	}

	ethqos = get_stmmac_bsp_priv(&pdev->dev);
	if (!ethqos)
		return -ENODEV;
@@ -1720,6 +1725,9 @@ static int qcom_ethqos_remove(struct platform_device *pdev)
	emac_emb_smmu_exit();
	ethqos_disable_regulators(ethqos);

	platform_set_drvdata(pdev, NULL);
	of_platform_depopulate(&pdev->dev);

	return ret;
}