From: Andrey Smirnov <[email protected]> Call put_device() in nvmem_unregister() to make sure nvmem_release gets called freeing up allocated resources.
Cc: [email protected] Cc: Srinivas Kandagatla <[email protected]> Cc: Maxime Ripard <[email protected]> Signed-off-by: Andrey Smirnov <[email protected]> Signed-off-by: Srinivas Kandagatla <[email protected]> --- drivers/nvmem/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c index 6cf916d9db6d..0cbac71195b5 100644 --- a/drivers/nvmem/core.c +++ b/drivers/nvmem/core.c @@ -532,6 +532,7 @@ int nvmem_unregister(struct nvmem_device *nvmem) nvmem_device_remove_all_cells(nvmem); device_del(&nvmem->dev); + put_device(&nvmem->dev); return 0; } -- 2.11.0

