From patchwork Fri Sep 21 13:40:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 147280 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp839614ljw; Fri, 21 Sep 2018 06:43:13 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZrKgmvmqJnImGTDcK6ypFvilxM0iYp0ih7Chjxvf8LEh52yT8xw+qO/kWI77TYGFeupCma X-Received: by 2002:a62:c805:: with SMTP id z5-v6mr47153958pff.44.1537537393564; Fri, 21 Sep 2018 06:43:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537537393; cv=none; d=google.com; s=arc-20160816; b=jR29WyDVzJRzEhQv3Z3jXK5pcPZaP06Lp09BtVvgapcyWtaLgHQHNdd87uhCzvtTBF IJvmoyqmcvc0xktowDK6YwOBu9kV6m1Q7qsx9ovZdSkK8Nk6cBzN0nkxwx7nZy/JHNX4 A2l9BxY96H6BtLDoguBLbcWLtF6NzrM50s9ZRo3UxnZsyRym0lXcKMeKDOvuiVUlw7nz jkHS545CptRIvcHztxK6+lfTcVyCqcxGN4t9zD1CT/UxLmv5CYnpvjy6o48FXfzUhYP6 RUWExkG8WYV2+HVTCyWFhP8w0avOC8JliHlKoU+725XBglyJmSr0A+/ik1973XpLOQ2E XHzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=rzBeb2hyTL8rR7/sPqEb+muFfVwV6usujwCr55pWv2I=; b=Hwolxj71RwtnytqCdRIURLa/KzNiRCbojzXcyvzkJLzMpiH4cHpStf2ecqsB3aur2m ae1HWQPL9CTRo0yj028EiejxJVOuPlTeLwmDw/nzSYNQ0KjhpLmNb8Jq5yQSpsWSN3fJ sEuhsp7cjOGSsqyYt161ccxD61rTOJ2njQ1VLbR2r6C2qzbRUjVA4tFBIF8uJllrQ/Cu ZDnrKz9x64NJyNXxZLpEpE9X0IFd6rb4+dPo4z2ElpsrKDwiv4wfBLhfJkFe3lOFQIWk +4AHIHX1nfejeJue2cUNZR5pTjlG2cE/jz5vjzUEAj0sf7yZbtxB8jr9iWE6f56XufPb qNkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i+5nHf4V; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n137-v6si29127193pfd.177.2018.09.21.06.43.13; Fri, 21 Sep 2018 06:43:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i+5nHf4V; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390121AbeIUT3g (ORCPT + 32 others); Fri, 21 Sep 2018 15:29:36 -0400 Received: from mail-it1-f193.google.com ([209.85.166.193]:39552 "EHLO mail-it1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390081AbeIUT3e (ORCPT ); Fri, 21 Sep 2018 15:29:34 -0400 Received: by mail-it1-f193.google.com with SMTP id h1-v6so1929525itj.4 for ; Fri, 21 Sep 2018 06:40:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=rzBeb2hyTL8rR7/sPqEb+muFfVwV6usujwCr55pWv2I=; b=i+5nHf4VQD0TBf/6+QzKfGTYdjIshV+4ER+vOBEyrUOK6wkK5aZIbZajPJlFDV/s5k D7FNjqzqZSB1Fwskh/zo4FWVLtj+Uh23mbNA1MV1TlTloHP9wF0FBGL232jXMzbuTCLA XEKemQ6Ly1P05/yg9M+2NcrVzy65UfTWygh/8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=rzBeb2hyTL8rR7/sPqEb+muFfVwV6usujwCr55pWv2I=; b=MbCQ1NlHFiGJqvE7KK8dLOKV6hyGDS97uFe46SbMKrwBBQghV+fr8pL5qNwX1u80t4 i784ZzXs62J8Aju1rQp/MT3axchXzBSq4x/fT2NiS3M1iGsxGROERLQHFNE14j4faMrF e5NPOuzGGQNyQsh5QQ6if1n/o2N5Z0WQqUAWVyUYwBWoNxGiqKfTeZWxUBZ0WeOzshCf gCnYFbbZQcjNsZYLCOdVpotL4Pef/+z7QyNBzw1RwpkJjh4KnQrpI/AMAwonaz/7Lxz0 FL9kGNuGaeK95iN34scPUc6BNfdM5Fq5vQBzVR4sn45r5Mz3JStoRtwZ3THyZfqVFE1a xzYA== X-Gm-Message-State: APzg51Dq5bL43VrwT2sV4hdqsR2njgo+eDqS8Da6xW1DvRRHpWHDcA4X hY8QAV87qi35uFc2IE6H4aAk0gvJvM8= X-Received: by 2002:a24:1ad1:: with SMTP id 200-v6mr5991746iti.4.1537537239709; Fri, 21 Sep 2018 06:40:39 -0700 (PDT) Received: from localhost.localdomain ([209.82.80.116]) by smtp.gmail.com with ESMTPSA id c12-v6sm9896298ioq.81.2018.09.21.06.40.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Sep 2018 06:40:39 -0700 (PDT) From: srinivas.kandagatla@linaro.org To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Bartosz Golaszewski , Srinivas Kandagatla Subject: [PATCH 04/26] nvmem: remove the name field from struct nvmem_device Date: Fri, 21 Sep 2018 06:40:04 -0700 Message-Id: <20180921134026.4596-5-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20180921134026.4596-1-srinivas.kandagatla@linaro.org> References: <20180921134026.4596-1-srinivas.kandagatla@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski 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 Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.19.0 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 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--;