Thread (13 messages) 13 messages, 2 authors, 2018-11-02

[PATCH v2 3/8] clk: clk-s3c2410-dclk: clean up clkdev lookup leak

From: Matti Vaittinen <hidden>
Date: 2018-11-02 09:18:33
Also in: linux-arm-msm, linux-clk, linux-doc, linux-samsung-soc, lkml

Thanks Krzysztof!

On Fri, Nov 02, 2018 at 09:19:10AM +0100, Krzysztof Kozlowski wrote:
On Thu, 1 Nov 2018 at 08:19, Matti Vaittinen
[off-list ref] wrote:
quoted
Use devm variant of clkdev lookup registration in order to avoid
clkdev lookup leak at device remove.

Signed-off-by: Matti Vaittinen <redacted>
---
 drivers/clk/samsung/clk-s3c2410-dclk.c | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)
Driver has suppress_bind_attrs and it cannot be built as module so
device removal should not be possible. There is no need to use devm.
This is exactly what I wanted to hear =) I will drop this patch from
series.

-- 
Matti Vaittinen
ROHM Semiconductors

~~~ "I don't think so," said Rene Descartes.  Just then, he vanished ~~~
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help