提交 c858401c 编写于 作者: S Suman Anna 提交者: Herbert Xu

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: NSuman Anna <s-anna@ti.com>
Reviewed-by: NTero Kristo <kristo@kernel.org>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 daeec738
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册