diff options
author | Pramod Gurav <pramod.gurav@linaro.org> | 2016-05-02 08:14:04 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-05-02 10:27:28 -0400 |
commit | d2442287e77926ee3552acf3bf31a6047ecb0ac1 (patch) | |
tree | 0ca77c902bd92621b1dbe3c8e2d8623f83975502 /drivers/spi/spi-qup.c | |
parent | dae1a7700b34eceae049cf8f1567a640528ca4c1 (diff) |
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) | |||
1030 | 1030 | ||
1031 | pm_runtime_put_noidle(&pdev->dev); | 1031 | pm_runtime_put_noidle(&pdev->dev); |
1032 | pm_runtime_disable(&pdev->dev); | 1032 | pm_runtime_disable(&pdev->dev); |
1033 | spi_master_put(master); | ||
1034 | |||
1033 | return 0; | 1035 | return 0; |
1034 | } | 1036 | } |
1035 | 1037 | ||