diff options
author | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2020-11-09 17:34:06 +0100 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2020-11-19 12:50:11 +0100 |
commit | 3a905c2d9544a418953d6c18668f0f853fbd9be9 (patch) | |
tree | c3a6428a3c94fa42176a7e8e7cd6bda5fd6970c1 /drivers/rtc/nvmem.c | |
parent | 25ece30561d247b2931b0d11d92e9c976a668771 (diff) | |
download | lwn-3a905c2d9544a418953d6c18668f0f853fbd9be9.tar.gz lwn-3a905c2d9544a418953d6c18668f0f853fbd9be9.zip |
rtc: add devm_ prefix to rtc_nvmem_register()
rtc_nvmem_register() is a managed interface. It doesn't require any
release function to be called at driver detach. To avoid confusing
driver authors, let's rename it to devm_rtc_nvmem_register() and add it
to the list of managed interfaces in Documentation/.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20201109163409.24301-6-brgl@bgdev.pl
Diffstat (limited to 'drivers/rtc/nvmem.c')
-rw-r--r-- | drivers/rtc/nvmem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/rtc/nvmem.c b/drivers/rtc/nvmem.c index 5e0b178a3b65..7502deb6390e 100644 --- a/drivers/rtc/nvmem.c +++ b/drivers/rtc/nvmem.c @@ -10,7 +10,7 @@ #include <linux/nvmem-consumer.h> #include <linux/rtc.h> -int rtc_nvmem_register(struct rtc_device *rtc, +int devm_rtc_nvmem_register(struct rtc_device *rtc, struct nvmem_config *nvmem_config) { struct nvmem_device *nvmem; @@ -24,4 +24,4 @@ int rtc_nvmem_register(struct rtc_device *rtc, return PTR_ERR_OR_ZERO(nvmem); } -EXPORT_SYMBOL_GPL(rtc_nvmem_register); +EXPORT_SYMBOL_GPL(devm_rtc_nvmem_register); |