]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - drivers/nvmem/sc27xx-efuse.c
nvmem: sc27xx: Change to use devm_hwspin_lock_request_specific() to request one hwlock
authorBaolin Wang <baolin.wang@linaro.org>
Tue, 29 Oct 2019 11:42:32 +0000 (11:42 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Nov 2019 17:35:28 +0000 (18:35 +0100)
commit1e6d8e5f44414de1bb6d11b7ff69e8385b5007d0
tree34a15e6fac67e6a2b2f931db15f22e825575a034
parent9b8303fc6efa724bd6a90656434fbde2cc6ceb2c
nvmem: sc27xx: Change to use devm_hwspin_lock_request_specific() to request one hwlock

Change to use devm_hwspin_lock_request_specific() to help to simplify the
cleanup code for drivers requesting one hwlock. Thus we can remove the
redundant sc27xx_efuse_remove() and platform_set_drvdata().

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20191029114240.14905-3-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/sc27xx-efuse.c