mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
nvmem: core: Call put_device() in nvmem_unregister()
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]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
3360acdf83
commit
79fbf0468b
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue