Re: [PATCH] soc: fix comment for freeing soc_dev_attr

2020-12-08 Thread Geert Uytterhoeven
Hi Krzysztof, On Mon, Dec 7, 2020 at 8:00 PM Krzysztof Kozlowski wrote: > The soc_dev_attr is stored soc_dev->attr during soc_device_register() so > it could be used till the cleanup call: soc_device_unregister(). > Therefore this memory should not be freed prior, but after unregistering > soc

[PATCH] soc: fix comment for freeing soc_dev_attr

2020-12-07 Thread Krzysztof Kozlowski
The soc_dev_attr is stored soc_dev->attr during soc_device_register() so it could be used till the cleanup call: soc_device_unregister(). Therefore this memory should not be freed prior, but after unregistering soc device. Signed-off-by: Krzysztof Kozlowski --- drivers/base/soc.c | 2 +- 1 file