diff options
| author | Khouloud Touil <ktouil@baylibre.com> | 2020-03-10 16:22:50 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-03-19 09:41:03 +0300 |
| commit | a9c3766cb19cdadf2776aba41b64470002645894 (patch) | |
| tree | bc61d3afcf5e16f676fe28ce006cbd93cb19c9ae /tools/perf/scripts/python/check-perf-trace.py | |
| parent | f7d8d7dcd978382dd1dd36e240dcddbfa6697796 (diff) | |
| download | linux-a9c3766cb19cdadf2776aba41b64470002645894.tar.xz | |
nvmem: release the write-protect pin
Put the write-protect GPIO descriptor in nvmem_release() so that it can
be automatically released when the associated device's reference count
drops to 0.
Fixes: 2a127da461a9 ("nvmem: add support for the write-protect pin")
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Khouloud Touil <ktouil@baylibre.com>
Cc: stable <stable@vger.kernel.org>
[Bartosz: tweak the commit message]
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20200310132257.23358-8-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions
