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 <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20210810142230.2220453-1-yangyingliang@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Yang Yingliang 2021-08-10 22:22:30 +08:00 committed by Mark Brown
parent 0b89fc0a36
commit 02cea7039a
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -1154,8 +1154,6 @@ static int tegra_slink_remove(struct platform_device *pdev)
if (tspi->rx_dma_chan)
tegra_slink_deinit_dma_param(tspi, true);
spi_master_put(master);
return 0;
}