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:
60cc43f
)
mtd: rawnand: tango: Fix struct clk memory leak
author
Marc Gonzalez
<
[email protected]
>
Thu, 5 Apr 2018 12:57:59 +0000
(14:57 +0200)
committer
Boris Brezillon
<
[email protected]
>
Fri, 20 Apr 2018 22:24:57 +0000
(
00:24
+0200)
Use devm_clk_get() to let Linux manage struct clk memory.
Fixes: 6956e2385a16 ("add tango NAND flash controller support")
Cc:
[email protected]
Reported-by: Xidong Wang <
[email protected]
>
Signed-off-by: Marc Gonzalez <
[email protected]
>
Reviewed-by: Miquel Raynal <
[email protected]
>
Signed-off-by: Boris Brezillon <
[email protected]
>
drivers/mtd/nand/raw/tango_nand.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/raw/tango_nand.c
b/drivers/mtd/nand/raw/tango_nand.c
index f54518ffb36af43221bc01905a731d3c9e73d968..f2052fae21c7453ae6f5fa3698fd2d38fa1884ad 100644
(file)
--- a/
drivers/mtd/nand/raw/tango_nand.c
+++ b/
drivers/mtd/nand/raw/tango_nand.c
@@
-645,7
+645,7
@@
static int tango_nand_probe(struct platform_device *pdev)
writel_relaxed(MODE_RAW, nfc->pbus_base + PBUS_PAD_MODE);
- clk = clk_get(&pdev->dev, NULL);
+ clk =
devm_
clk_get(&pdev->dev, NULL);
if (IS_ERR(clk))
return PTR_ERR(clk);