projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18e34d5
)
spi: txx9: drop clk_put for devm_clk_get in txx9spi_probe()
author
Wei Yongjun
<
[email protected]
>
Fri, 20 Dec 2013 02:15:45 +0000
(10:15 +0800)
committer
Mark Brown
<
[email protected]
>
Fri, 20 Dec 2013 12:34:07 +0000
(12:34 +0000)
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 <
[email protected]
>
Reviewed-by: Jingoo Han <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
drivers/spi/spi-txx9.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-txx9.c
b/drivers/spi/spi-txx9.c
index b206de1616d5b2b83e7553c9982a93cbe3705bc6..c72a8f840b4b2fef48cdaf2dad47981105242cd1 100644
(file)
--- a/
drivers/spi/spi-txx9.c
+++ b/
drivers/spi/spi-txx9.c
@@
-356,7
+356,6
@@
static int txx9spi_probe(struct platform_device *dev)
}
ret = clk_enable(c->clk);
if (ret) {
- clk_put(c->clk);
c->clk = NULL;
goto exit;
}