diff options
author | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2018-09-21 16:40:08 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-09-28 16:14:54 +0300 |
commit | c1de7f43bd84271e438a4f2dadc4ba9a353baaea (patch) | |
tree | f08b22fddaa52f2d55f6b2cb34bacc936e8838a9 /drivers/nvmem/sunxi_sid.c | |
parent | fa72d847d68d7833b77a4bef944cf2c5baf56f49 (diff) | |
download | linux-c1de7f43bd84271e438a4f2dadc4ba9a353baaea.tar.xz |
nvmem: use kref
Use kref for reference counting. Use an approach similar to the one
seen in the common clock subsystem: don't actually destroy the nvmem
device until the last user puts it. This way we can get rid of the
users check from nvmem_unregister().
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/nvmem/sunxi_sid.c')
0 files changed, 0 insertions, 0 deletions