提交 d2442287 编写于 作者: P Pramod Gurav 提交者: Mark Brown

spi: qup: Add spi_master_put in remove function

Release memory allocated for spi master by calling spi_master_put in
.remove function.
Signed-off-by: NPramod Gurav <pramod.gurav@linaro.org>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 dae1a770
......@@ -1030,6 +1030,8 @@ static int spi_qup_remove(struct platform_device *pdev)
pm_runtime_put_noidle(&pdev->dev);
pm_runtime_disable(&pdev->dev);
spi_master_put(master);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册