Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3605044imm; Wed, 5 Sep 2018 03:00:27 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbBo1Dxs8oj6aM7sglNR7uFlIJOATvK5+LCWKYv56i1DdEyaTpdKH+ZaJiHhiPos0nXrlKN X-Received: by 2002:a63:1750:: with SMTP id 16-v6mr13344114pgx.31.1536141627869; Wed, 05 Sep 2018 03:00:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536141627; cv=none; d=google.com; s=arc-20160816; b=oUbwAzpUGHXcSh3q4INZbc5soHyxmuEbzTD/9ma+19jUayR+VbkhdCkLP8z1rldvCw KCnyH6APxnxnDY5wrQG5MIaihPPBI+SAOg/f8w0mW44FcxS1X1cskuYe5XDzDGdJOiIX /4Kp2bV2uX9PQKnc967jJRUbcNpEMtGZNWxDpvIXkNb8U4xBbLR/tgEiFOJDV2woMJYN +r6uBVYav7vqrIjkSpyxz/Zw048mDefTL189nD8mkJbBxr9kbpkp1fbG8CqZhyqkkUS6 vzRNbx3ZVeMIH6bw3hLcSXb5og0K36HrSHTfhhOPCIxqgEu9VrlD5srk+L/eNL5jiJ/W 7OfA== 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=hZUvq4Ul6ts1IqVwaZG0iM5r5oyQ1c5COV3yCjHz1tKPBIv5TYDE+2jKepwyZP6f+R rvMkts1S9llDmVeO+PVfvFAAictjW6LEuK3TbSJuw66TI3noL6qAuRJGpr1EfANxO9WI Ol1MHwP0SmzAERa33OaThVpKmkJSO48WGL1U6X7FC+wECpLghYEKyEVWShqWLT9kavOm tIx16pQvECKR3rhFvqwdyiMXJIAdTRuL5CBbdGaYhYeS5LaYXv09hGNVmwS+pGZA56ss gi2CXfdzzp+4pM7NWHbP6p3T80BlRrFSv/a9wOPZOCYQKz/phZcfgFjtGP2HrZ2hz9mr HoiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=hEQiNjDc; 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 t32-v6si1555728pgk.294.2018.09.05.03.00.12; Wed, 05 Sep 2018 03:00:27 -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=hEQiNjDc; 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 S1728354AbeIEO1m (ORCPT + 99 others); Wed, 5 Sep 2018 10:27:42 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:39705 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728160AbeIEO1m (ORCPT ); Wed, 5 Sep 2018 10:27:42 -0400 Received: by mail-wr1-f66.google.com with SMTP id o37-v6so6962879wrf.6 for ; Wed, 05 Sep 2018 02:58:13 -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=hEQiNjDcfbhggmgKR4Jy12P6EQ6yufcz7/7IiKPfuatT+uu6dKBgJLA9Us6W49wylD wTMLhBDnO2sUmYtEtlGqQRvXY5XrNxmlVkrRgLcql43qu9F/Qy+zpa0OtCpNVZMCG5Qn ONqhpaRYK4Uk22P0eDVArimE9BqzG29ELX1qHfvsmG965qNxbG8s5HCmFruUgtQFgStg NtQg1LuGobUHvv0OAd84Ue1jPos6+QYAOGDONza6f0sfE3aEcGjC+QIKzrvkoWQ4SWcI GLozHF6yErs/f895RME5R9bhSPwAACbq1t1yG005YPZVDeqi/F2wMluOcpyCPDB/7zvV 4onQ== 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=ez7rlDSfHT2Ha5nEtkc2K23RIa3MPcIM7kO30seNBNfWr2QAsRn77/ohmUqQ6QFRvw Dy9q1VY/eF+CgPkTHm98zJcKMAUx+NHrgdZTXbHsEs8ZKSQrRI17YNOQUE/8S3vtHeHs m4gwHdUoavAY+mmZgp6l7Tn7Y8dW1YsOBxAxuaTvtXRDx5GKLUr7YUVGB0vEI561gsFl tg2h5+iNACQ3HzRQujX1oHw8g7Y/nEIyw7kCwZkrcBC4BHrg8JX/ctJiVbnrhgQNDErA tz1ERZfRvCZqzJbvevdkbmT3yCVCe2bCiYL+7RSWN+ww6P5BO3Af+Jeg9OwooNv8okOE aWZw== X-Gm-Message-State: APzg51ALVp0jqhREYy0/McuK3dSt0RO0sE1bPPasg7EciXbM/D3QgCTr osNeLblP3JWok5dHgNqdHf8IgA== X-Received: by 2002:adf:9543:: with SMTP id 61-v6mr7497951wrs.25.1536141492971; Wed, 05 Sep 2018 02:58:12 -0700 (PDT) Received: from brgl-bgdev.baylibre.local (AStLambert-681-1-33-235.w90-86.abo.wanadoo.fr. [90.86.152.235]) by smtp.gmail.com with ESMTPSA id l12-v6sm2127815wrv.29.2018.09.05.02.58.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Sep 2018 02:58:12 -0700 (PDT) From: Bartosz Golaszewski To: Srinivas Kandagatla , Joachim Eastwood , "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 Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bartosz Golaszewski Subject: [PATCH 07/13] nvmem: remove the name field from struct nvmem_device Date: Wed, 5 Sep 2018 11:57:32 +0200 Message-Id: <20180905095738.26406-8-brgl@bgdev.pl> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180905095738.26406-1-brgl@bgdev.pl> References: <20180905095738.26406-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