diff options
author | Pramod Gurav <pramod.gurav@linaro.org> | 2016-05-02 14:14:04 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-05-02 16:27:28 +0200 |
commit | d2442287e77926ee3552acf3bf31a6047ecb0ac1 (patch) | |
tree | 0ca77c902bd92621b1dbe3c8e2d8623f83975502 /drivers/spi | |
parent | spi: qup: Handle clocks in pm_runtime suspend and resume (diff) | |
download | linux-d2442287e77926ee3552acf3bf31a6047ecb0ac1.tar.xz linux-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')
-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; } |