Skip to content

Commit

Permalink
spi/rockchip: remove redundant call to spi_master_put()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Laurentiu Palcu authored and Mark Brown committed Nov 12, 2014
1 parent f114040 commit dfcc2e3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/spi/spi-rockchip.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit dfcc2e3

Please sign in to comment.