From: Laurentiu Palcu Date: Tue, 11 Nov 2014 13:22:51 +0000 (+0200) Subject: spi/rockchip: remove redundant call to spi_master_put() X-Git-Tag: firefly_0821_release~176^2~2723^2~1^4 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=dfcc2e3549b5d57886d4ce6b4762bd4b64f6f945;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-rockchip.c b/drivers/spi/spi-rockchip.c index f96ea8a38d64..08897d34ce33 100644 --- a/drivers/spi/spi-rockchip.c +++ b/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; }