summaryrefslogtreecommitdiffstats
path: root/drivers/interconnect
diff options
context:
space:
mode:
authorJohan Hovold <johan+linaro@kernel.org>2023-03-06 08:56:44 +0100
committerGeorgi Djakov <djakov@kernel.org>2023-03-13 21:13:48 +0200
commit859ad5f177efa59f6b8a2fac20561ca5cb13c89f (patch)
tree22fb742d6c4f1cf3b258eb790687b1a58eccadb3 /drivers/interconnect
parentc9e46ca612cfbb0cf890f7ae7389b742e90efe64 (diff)
downloadlinux-stable-859ad5f177efa59f6b8a2fac20561ca5cb13c89f.tar.gz
linux-stable-859ad5f177efa59f6b8a2fac20561ca5cb13c89f.tar.bz2
linux-stable-859ad5f177efa59f6b8a2fac20561ca5cb13c89f.zip
interconnect: exynos: drop redundant link destroy
There is no longer any need to explicitly destroy node links as this is now done when the node is destroyed as part of icc_nodes_remove(). Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Johan Hovold <johan+linaro@kernel.org> Link: https://lore.kernel.org/r/20230306075651.2449-17-johan+linaro@kernel.org Signed-off-by: Georgi Djakov <djakov@kernel.org>
Diffstat (limited to 'drivers/interconnect')
-rw-r--r--drivers/interconnect/samsung/exynos.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/interconnect/samsung/exynos.c b/drivers/interconnect/samsung/exynos.c
index 72e42603823b..ebf09bbf725b 100644
--- a/drivers/interconnect/samsung/exynos.c
+++ b/drivers/interconnect/samsung/exynos.c
@@ -96,14 +96,8 @@ static struct icc_node *exynos_generic_icc_xlate(struct of_phandle_args *spec,
static int exynos_generic_icc_remove(struct platform_device *pdev)
{
struct exynos_icc_priv *priv = platform_get_drvdata(pdev);
- struct icc_node *parent_node, *node = priv->node;
icc_provider_deregister(&priv->provider);
-
- parent_node = exynos_icc_get_parent(priv->dev->parent->of_node);
- if (parent_node && !IS_ERR(parent_node))
- icc_link_destroy(node, parent_node);
-
icc_nodes_remove(&priv->provider);
return 0;