提交 dfcc2e35 编写于 作者: L Laurentiu Palcu 提交者: Mark Brown

spi/rockchip: remove redundant call to spi_master_put()

The call to spi_master_put() in rockchip_spi_remove() is redundant since
the master is registered using devm_. This patch removes it.
Signed-off-by: NLaurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 f114040e
......@@ -723,8 +723,6 @@ static int rockchip_spi_remove(struct platform_device *pdev)
if (rs->dma_rx.ch)
dma_release_channel(rs->dma_rx.ch);
spi_master_put(master);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册