[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210514161246.22517-7-s-anna@ti.com>
Date: Fri, 14 May 2021 11:12:46 -0500
From: Suman Anna <s-anna@...com>
To: Herbert Xu <herbert@...dor.apana.org.au>,
"David S. Miller" <davem@...emloft.net>
CC: Deepak Saxena <dsaxena@...xity.net>,
Tero Kristo <kristo@...nel.org>, Keerthy <j-keerthy@...com>,
Gowtham Tammana <g-tammana@...com>,
Vaibhav Gupta <v_gupta@...com>, <linux-crypto@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, Suman Anna <s-anna@...com>
Subject: [PATCH 6/6] crypto: sa2ul - Remove child devices in remove
The sa_ul_probe creates child devices using of_platform_populate(),
but these are not cleaned up in driver remove. Clean these up
by removing the child devices using of_platform_depopulate().
Signed-off-by: Suman Anna <s-anna@...com>
---
drivers/crypto/sa2ul.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/crypto/sa2ul.c b/drivers/crypto/sa2ul.c
index 216702fef945..51bb69bc573c 100644
--- a/drivers/crypto/sa2ul.c
+++ b/drivers/crypto/sa2ul.c
@@ -2467,6 +2467,8 @@ static int sa_ul_remove(struct platform_device *pdev)
{
struct sa_crypto_data *dev_data = platform_get_drvdata(pdev);
+ of_platform_depopulate(&pdev->dev);
+
sa_unregister_algos(&pdev->dev);
dma_release_channel(dev_data->dma_rx2);
--
2.30.1
Powered by blists - more mailing lists