Home
last modified time | relevance | path

Searched hist:c1de7f43bd84271e438a4f2dadc4ba9a353baaea (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/nvmem/
H A Dcore.cc1de7f43bd84271e438a4f2dadc4ba9a353baaea Fri Sep 21 13:40:08 UTC 2018 Bartosz Golaszewski <bgolaszewski@baylibre.com> 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>