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-Url: https://git.stricted.de/?a=commitdiff_plain;h=dfcc2e3549b5d57886d4ce6b4762bd4b64f6f945;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.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; }