diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-09-27 04:21:30 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-09-27 05:49:09 -0400 |
commit | 0158026ccced1ae312233a6a46dc0b6edce3fb6c (patch) | |
tree | f95e73747e5f3ec29c47c0f54c996dd0436bf2f6 | |
parent | 9b4003a687abcf2fe25ba9073dd07345e4529183 (diff) |
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>
-rw-r--r-- | drivers/spi/spi-clps711x.c | 1 |
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) | |||
226 | dev_name(&pdev->dev), hw); | 226 | dev_name(&pdev->dev), hw); |
227 | if (ret) { | 227 | if (ret) { |
228 | dev_err(&pdev->dev, "Can't request IRQ\n"); | 228 | dev_err(&pdev->dev, "Can't request IRQ\n"); |
229 | clk_put(hw->spi_clk); | ||
230 | goto clk_out; | 229 | goto clk_out; |
231 | } | 230 | } |
232 | 231 | ||