Skip to content

Commit 02cea70

Browse files
Yang Yingliangbroonie
authored andcommitted
spi: tegra20-slink: remove spi_master_put() in tegra_slink_remove()
spi_master_put() is already called in spi_unregister_master(), or it will lead a double decrement refcount. Reported-by: Hulk Robot <[email protected]> Signed-off-by: Yang Yingliang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 0b89fc0 commit 02cea70

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/spi/spi-tegra20-slink.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,8 +1154,6 @@ static int tegra_slink_remove(struct platform_device *pdev)
11541154
if (tspi->rx_dma_chan)
11551155
tegra_slink_deinit_dma_param(tspi, true);
11561156

1157-
spi_master_put(master);
1158-
11591157
return 0;
11601158
}
11611159

0 commit comments

Comments
 (0)