diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-12-19 21:15:45 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-12-20 07:34:07 -0500 |
commit | bdf0290ac70f5a09e85507bf6c84dc6a399dff82 (patch) | |
tree | 8637247550fa5e055eec5e7f07cac8a99ff81623 /drivers/spi | |
parent | 18e34d568efa5f1f8b75a76400dbd06c7811c73b (diff) |
spi: txx9: drop clk_put for devm_clk_get in txx9spi_probe()
devm_clk_get() is used so there is no reason to explicitly
call clk_put() in txx9spi_probe() functions.
Fixes: 18e34d568efa ('spi: txx9: Use devm_clk_get()')
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Reviewed-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.og>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-txx9.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/spi/spi-txx9.c b/drivers/spi/spi-txx9.c index b206de1616d5..c72a8f840b4b 100644 --- a/drivers/spi/spi-txx9.c +++ b/drivers/spi/spi-txx9.c | |||
@@ -356,7 +356,6 @@ static int txx9spi_probe(struct platform_device *dev) | |||
356 | } | 356 | } |
357 | ret = clk_enable(c->clk); | 357 | ret = clk_enable(c->clk); |
358 | if (ret) { | 358 | if (ret) { |
359 | clk_put(c->clk); | ||
360 | c->clk = NULL; | 359 | c->clk = NULL; |
361 | goto exit; | 360 | goto exit; |
362 | } | 361 | } |