summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-qup.c
diff options
context:
space:
mode:
authorPramod Gurav <pramod.gurav@linaro.org>2016-05-02 15:14:04 +0300
committerMark Brown <broonie@kernel.org>2016-05-02 17:27:28 +0300
commitd2442287e77926ee3552acf3bf31a6047ecb0ac1 (patch)
tree0ca77c902bd92621b1dbe3c8e2d8623f83975502 /drivers/spi/spi-qup.c
parentdae1a7700b34eceae049cf8f1567a640528ca4c1 (diff)
downloadlinux-d2442287e77926ee3552acf3bf31a6047ecb0ac1.tar.xz
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: Pramod Gurav <pramod.gurav@linaro.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-qup.c')
-rw-r--r--drivers/spi/spi-qup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/spi/spi-qup.c b/drivers/spi/spi-qup.c
index e42ff613c0e0..c338ef1136f6 100644
--- a/drivers/spi/spi-qup.c
+++ b/drivers/spi/spi-qup.c
@@ -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;
}