From: Pramod Gurav Date: Mon, 2 May 2016 12:14:04 +0000 (+0530) Subject: spi: qup: Add spi_master_put in remove function X-Git-Tag: v4.7-rc1~64^2~1^3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d2442287e77926ee3552acf3bf31a6047ecb0ac1;p=platform%2Fkernel%2Flinux-exynos.git 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 Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-qup.c b/drivers/spi/spi-qup.c index e42ff61..c338ef1 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; }