Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 844c9f47 authored by Shawn Lin's avatar Shawn Lin Committed by Mark Brown
Browse files

spi: rockchip: add missing spi_master_put



Add missing spi_master_put for rockchip_spi_remove since
it calls spi_master_get already.

Signed-off-by: default avatarShawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent b8659add
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -779,6 +779,8 @@ static int rockchip_spi_remove(struct platform_device *pdev)
	if (rs->dma_rx.ch)
	if (rs->dma_rx.ch)
		dma_release_channel(rs->dma_rx.ch);
		dma_release_channel(rs->dma_rx.ch);


	spi_master_put(master);

	return 0;
	return 0;
}
}