Skip to content

Commit d244228

Browse files
Pramod Guravbroonie
authored andcommitted
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 <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent dae1a77 commit d244228

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/spi/spi-qup.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,6 +1030,8 @@ static int spi_qup_remove(struct platform_device *pdev)
10301030

10311031
pm_runtime_put_noidle(&pdev->dev);
10321032
pm_runtime_disable(&pdev->dev);
1033+
spi_master_put(master);
1034+
10331035
return 0;
10341036
}
10351037

0 commit comments

Comments
 (0)