summaryrefslogtreecommitdiff
path: root/drivers/nvmem/core.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <bgolaszewski@baylibre.com>2020-03-10 16:22:47 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-03-19 09:41:02 +0300
commite280a8c64aa808d3af55f2a7419671f3a4715c08 (patch)
tree79c61cdf86d0e88e15fc48f6e6e5faa86e769bc6 /drivers/nvmem/core.c
parent8b977c5498b8336b0c61b0fa72f6353e71f938da (diff)
downloadlinux-e280a8c64aa808d3af55f2a7419671f3a4715c08.tar.xz
nvmem: remove a stray newline in nvmem_register()
Two newlines are unnecessary - remove one. 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-5-srinivas.kandagatla@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/nvmem/core.c')
-rw-r--r--drivers/nvmem/core.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c
index 4634af1f6341..9bdf0ab88efe 100644
--- a/drivers/nvmem/core.c
+++ b/drivers/nvmem/core.c
@@ -355,7 +355,6 @@ struct nvmem_device *nvmem_register(const struct nvmem_config *config)
if (IS_ERR(nvmem->wp_gpio))
return ERR_CAST(nvmem->wp_gpio);
-
kref_init(&nvmem->refcnt);
INIT_LIST_HEAD(&nvmem->cells);