spi: qup: Add spi_master_put in remove function
authorPramod Gurav <pramod.gurav@linaro.org>
Mon, 2 May 2016 12:14:04 +0000 (17:44 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 2 May 2016 14:27:28 +0000 (15:27 +0100)
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>
drivers/spi/spi-qup.c

index e42ff61..c338ef1 100644 (file)
@@ -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;
 }