From: Wei Yongjun Date: Fri, 27 Sep 2013 08:21:30 +0000 (+0800) Subject: spi/clps711x: drop clk_put for devm_clk_get in spi_clps711x_probe() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0158026ccced1ae312233a6a46dc0b6edce3fb6c;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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: Wei Yongjun Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-clps711x.c b/drivers/spi/spi-clps711x.c index b597a92565dc..6416798828e7 100644 --- a/drivers/spi/spi-clps711x.c +++ b/drivers/spi/spi-clps711x.c @@ -226,7 +226,6 @@ static int spi_clps711x_probe(struct platform_device *pdev) dev_name(&pdev->dev), hw); if (ret) { dev_err(&pdev->dev, "Can't request IRQ\n"); - clk_put(hw->spi_clk); goto clk_out; }