Messages in this thread | | | Date | Wed, 16 Aug 2023 10:52:11 +0200 | Subject | Re: [PATCH] thermal/drivers/sun8i: Free calibration nvmem after reading it | From | Daniel Lezcano <> |
| |
On 19/07/2023 02:58, Mark Brown wrote: > The sun8i thermal driver reads calibration data via the nvmem API at > startup, updating the device configuration and not referencing the data > again. Rather than explicitly freeing the nvmem data the driver relies > on devm_ to release it, even though the data is never referenced again. > The allocation is still tracked so it's not leaked but this is notable > when looking at the code and is a little wasteful so let's instead > explicitly free the nvmem after we're done with it. > > Signed-off-by: Mark Brown <broonie@kernel.org>
Applied, thanks
-- <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog
| |