Skip to content

Commit

Permalink
interconnect: exynos: drop redundant link destroy
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johan Hovold authored and Georgi Djakov committed Mar 13, 2023
1 parent c9e46ca commit 859ad5f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions drivers/interconnect/samsung/exynos.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 859ad5f

Please sign in to comment.