diff options
author | Pramod Gurav <pramod.gurav@linaro.org> | 2016-05-02 17:44:04 +0530 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-05-02 15:27:28 +0100 |
commit | d2442287e77926ee3552acf3bf31a6047ecb0ac1 (patch) | |
tree | 0ca77c902bd92621b1dbe3c8e2d8623f83975502 /drivers/spi/spi-qup.c | |
parent | dae1a7700b34eceae049cf8f1567a640528ca4c1 (diff) | |
download | linux-stable-d2442287e77926ee3552acf3bf31a6047ecb0ac1.tar.gz linux-stable-d2442287e77926ee3552acf3bf31a6047ecb0ac1.tar.bz2 linux-stable-d2442287e77926ee3552acf3bf31a6047ecb0ac1.zip |
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.c | 2 |
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; } |