aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-09-27 16:21:30 +0800
committerMark Brown <broonie@linaro.org>2013-09-27 10:49:09 +0100
commit0158026ccced1ae312233a6a46dc0b6edce3fb6c (patch)
treef95e73747e5f3ec29c47c0f54c996dd0436bf2f6 /drivers/spi
parentspi: clps711x: Don't call kfree() after spi_master_put/spi_unregister_master (diff)
downloadlinux-dev-0158026ccced1ae312233a6a46dc0b6edce3fb6c.tar.xz
linux-dev-0158026ccced1ae312233a6a46dc0b6edce3fb6c.zip
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 <yongjun_wei@trendmicro.com.cn> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi-clps711x.c1
1 files changed, 0 insertions, 1 deletions
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;
}