summaryrefslogtreecommitdiff
path: root/drivers/nvmem
diff options
context:
space:
mode:
authorBartosz Golaszewski <bgolaszewski@baylibre.com>2018-09-21 16:40:04 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-09-28 16:14:53 +0300
commit5db652c9f331ce7ae8662d9380ea4a404ba09344 (patch)
treec68f7b47a15572505b3a57d3afd1de1be9321d1c /drivers/nvmem
parentd7b9fd1669d4a4f38281c4e29f1408e1bdce09b3 (diff)
downloadlinux-5db652c9f331ce7ae8662d9380ea4a404ba09344.tar.xz
nvmem: remove the name field from struct nvmem_device
This field is never set and is only used in a single error message. Remove the field and use nvmem_dev_name() instead. 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>
Diffstat (limited to 'drivers/nvmem')
-rw-r--r--drivers/nvmem/core.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c
index 11afa3b6d551..72313a1d215f 100644
--- a/drivers/nvmem/core.c
+++ b/drivers/nvmem/core.c
@@ -26,7 +26,6 @@
#include <linux/slab.h>
struct nvmem_device {
- const char *name;
struct module *owner;
struct device dev;
int stride;
@@ -652,7 +651,7 @@ static struct nvmem_device *__nvmem_device_get(struct device_node *np,
if (!try_module_get(nvmem->owner)) {
dev_err(&nvmem->dev,
"could not increase module refcount for cell %s\n",
- nvmem->name);
+ nvmem_dev_name(nvmem));
mutex_lock(&nvmem_mutex);
nvmem->users--;