Commit 02cea703 authored by Yang Yingliang's avatar Yang Yingliang Committed by Mark Brown

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: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20210810142230.2220453-1-yangyingliang@huawei.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 0b89fc0a
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment