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

Commit 0158026c authored by Wei Yongjun's avatar Wei Yongjun Committed by Mark Brown
Browse files

spi/clps711x: drop clk_put for devm_clk_get in spi_clps711x_probe()



devm_clk_get() is used so there is no reason to explicitly
call clk_put() in probe or remove functions.

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 9b4003a6
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -226,7 +226,6 @@ static int spi_clps711x_probe(struct platform_device *pdev)
			       dev_name(&pdev->dev), hw);
			       dev_name(&pdev->dev), hw);
	if (ret) {
	if (ret) {
		dev_err(&pdev->dev, "Can't request IRQ\n");
		dev_err(&pdev->dev, "Can't request IRQ\n");
		clk_put(hw->spi_clk);
		goto clk_out;
		goto clk_out;
	}
	}