瀏覽代碼

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: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Laurentiu Palcu 10 年之前
父節點
當前提交
dfcc2e3549
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. 0 2
      drivers/spi/spi-rockchip.c

+ 0 - 2
drivers/spi/spi-rockchip.c

@@ -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;
 }