Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1604884imm; Fri, 7 Sep 2018 03:11:46 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY865MKsDRcdXJIbpBYftC7GNvmcYSsAkw1vGdPZE11tCvtI8qJ4sTJOFHM0fzrCHRuw/8S X-Received: by 2002:a65:6109:: with SMTP id z9-v6mr7453740pgu.243.1536315106492; Fri, 07 Sep 2018 03:11:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536315106; cv=none; d=google.com; s=arc-20160816; b=YNi3EaiFCjq0A+xVecVCWonHd8dGwW+/xa5qS5FrGBpueZQe/bPb3+ruG0HBkEapWV sPrTvzWnTC/HG0WhWmuhaa9jabhu20u5MTsz2YQDTZ+Jm8a8/xfzrNaXio0rNNRmXWKa A/GEkzuzp0qTSXKIYaU2f4yvoiM4NmfvjKkowPHcKhIWiGSRw4q69JwA01TjmhV7lDH7 hkYk7+OvipO8anQGBJhi75JZWl38AQu7uy323jxgbeK3iWaktgEPhbdrX49xUGTnohM0 UnTdk4Wmb38Z5dQb2TovYu6Brn1AvIY5wg/g1fmVLLEv8yK4ocd3FJpuum2aUMk61TIc cAyQ== 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=I1VBG0PAwehY35jashnN3ubpOSw/AOLijfoN6Rb7R00=; b=Sb+oW8GzQ96pcVmNhnhsNiBLYw1Cya2ukq1rASZI21XhGWC6AraDLmxcVUvkWzOoRQ ebQdNH6w77WLtZvrVwLk09au9B1r+lTP3QGc22I+9CWB8vZe1CfFPlh74h6IRevToB4T TLuHS1Z0IqGgoREXeSUC9BiOAURXaCWCf68bSHL9dINZgUBx2PKLW5sgM6DNylRnrwlN nVLo5jUMYsX0Ws3zEtylm2AkG6zFQVMUT+5KdUANExiW/AGAZhkpuScqRD2gYcyX27Wa CfJdaqASiHq1Fb9rDvrRFZw/kX3v7PWnVp5GKNor47m08hx+Uiy9D85T1eDTM+IZs2Bp 1fSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=G8hacTty; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d24-v6si7265422pls.477.2018.09.07.03.11.31; Fri, 07 Sep 2018 03:11:46 -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=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=G8hacTty; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728748AbeIGOsp (ORCPT + 99 others); Fri, 7 Sep 2018 10:48:45 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:42418 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728690AbeIGOso (ORCPT ); Fri, 7 Sep 2018 10:48:44 -0400 Received: by mail-wr1-f68.google.com with SMTP id v17-v6so14348207wrr.9 for ; Fri, 07 Sep 2018 03:08:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=I1VBG0PAwehY35jashnN3ubpOSw/AOLijfoN6Rb7R00=; b=G8hacTtyH0EPG+ekgqJrNF0glLu6/vPrPUoWVfQIZ+3QElZlOQhUVPijOPeOJjRSlj mryexc7U/A402JGKKl0OaMjEp8yYsksr9a5VrO1Bv6EUHEHF3agQgUm7SRJgDsDn3b/U S55kNmT0krv+0WK/kZpfq+lV59qz39puQPISozz/gTV4QJRitZvow5wHXqXtXhq/yKUx C5bsOLBFe2gtAk1YzaNfYn//nAhTwa4yH5dnOc6i/uW/HbR9xUbSxGYuiCoEhbflTO18 MM8KKoF0hP3TQUvlyrFIcvet9jtTcB+iUYdTxR7NboZ3Hdqw1qMf1NREnLkHp6Rzt6gt 6CaQ== 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=I1VBG0PAwehY35jashnN3ubpOSw/AOLijfoN6Rb7R00=; b=RuCpcZEOVpmLuzF5i+JD4+bXvfQPJSUYWshIvQ3GKRySRFlV/Ke90PqVjIJNYw5QS9 BzgtK43R+EEF4hi+Eg+ajwDLpYt+qf5c2iKcbzUJwNt7V+Yozac4/RicJeIIfGpiwmPJ GtSBPqGWJWaEcasr4sN/2pZKoA6fttFCcNWp8Pno/xYUfRmS8/TrugkFeDTAaJ6KaTm0 UsvJ0crRcdvPDS2UXK8FABGdHwSQFZsjIe4td/gdH6vq/XKmRsReMdMbMsfdVVdolV8l lbsFnqU/RHiQnk+K6dNP3+0KMfXUt8R24mXxbH9Nf4Nz9tcccZc66Ov2jccyfSBKRAoo ijkQ== X-Gm-Message-State: APzg51D/fMF4SF7EWdlHhlVJ9sJmrdyiFUBw3fbtYFspp9g5Uno7ehJW TXmaD2IrveudEp+4X+kqPndD5Q== X-Received: by 2002:adf:f648:: with SMTP id x8-v6mr5742256wrp.144.1536314910161; Fri, 07 Sep 2018 03:08:30 -0700 (PDT) Received: from brgl-bgdev.baylibre.local (AStLambert-681-1-83-232.w90-86.abo.wanadoo.fr. [90.86.25.232]) by smtp.gmail.com with ESMTPSA id 72-v6sm6631619wrb.48.2018.09.07.03.08.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Sep 2018 03:08:29 -0700 (PDT) From: Bartosz Golaszewski To: Srinivas Kandagatla , "David S . Miller" , Mauro Carvalho Chehab , Greg Kroah-Hartman , Andrew Morton , Arnd Bergmann , Jonathan Corbet , Sekhar Nori , Kevin Hilman , David Lechner , Boris Brezillon , Andrew Lunn , Alban Bedel , Maxime Ripard , Chen-Yu Tsai Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bartosz Golaszewski Subject: [PATCH v2 09/16] nvmem: remove the name field from struct nvmem_device Date: Fri, 7 Sep 2018 12:07:43 +0200 Message-Id: <20180907100750.14564-10-brgl@bgdev.pl> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180907100750.14564-1-brgl@bgdev.pl> References: <20180907100750.14564-1-brgl@bgdev.pl> 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 --- drivers/nvmem/core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c index 364ee16e7d6a..e456aaa6184a 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; @@ -537,7 +536,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)); return ERR_PTR(-EINVAL); } -- 2.18.0