Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp971073imm; Wed, 8 Aug 2018 08:39:02 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyfIbNJ8zljkJaCZtghmjVrmqD69+9AAEj7lCwItu9+fB+/fBDFoPMxrtAOa3V2K2CBGxNr X-Received: by 2002:a63:ff21:: with SMTP id k33-v6mr3027092pgi.38.1533742742281; Wed, 08 Aug 2018 08:39:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533742742; cv=none; d=google.com; s=arc-20160816; b=mJaKh54FMrXibOX8NhL1BGmx/XRKKiqWm3HE/w+6qYBYZAxtaDesUX72NZtNX6KNUz hGrs5EfMeH4Eh8UYkwBNLcAwdSIok975RI2ARbic+Xp4eaBb5icg1Do5bpXVJWacPbL+ 47Iktbawaghp7lwpSh3TsBaDbXTRhDRh41RiY/28QJMEJLjek/FBv3l3tgFBMLsk+Qu5 5axQnT3KFAHKPG1WAi/HDs7fzUeLfVdCJZKSMQep4HFgc9UJfcnLZaXXKmCrDg+XTkdn K9sNcEQlNk+X4AjGHyLc/N9TgL9JbyVfpV9xp45sEuieX+5qUnUmGw9RZSDpQ8xQCnz3 nJgA== 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:arc-authentication-results; bh=DW0C9V3JvjZMYtKc8VK2o7U2J9FYgSOIQQygiNDbrgo=; b=W89XwlPmEa3RktDl1JBAmTB0LMNifuN8LXqis9W2iflJR/17AcEowNUM9ZnygBPumZ eabbyd6okJIdMm3yau13/wO8JuSihxPPW7CFMitbidc57bh20VP5irpmHuwJTYNrolwz 6Vr5zO6h+coeVFA+/u/Fzk+GrVoUIBgx3e6jRyF+4KvxVJ/iQJjLtGu/hXrFqFcNE09i SaR/mR1Pqnt733Y9cj85mLxhv29vTAg2RqOxIzDzgK+0MEbhPFNo4RoZnnAi+a1TmOdO 3joxcrfRh0Ww2WIYnegsou0RDusyFjwk2W4RrBCUYtpFbRkIHjP4zih780ZrWn/C3Jzm r14A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=AcuLJY17; 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 g9-v6si3490534plo.23.2018.08.08.08.38.47; Wed, 08 Aug 2018 08:39:02 -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=AcuLJY17; 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 S1728095AbeHHRxt (ORCPT + 99 others); Wed, 8 Aug 2018 13:53:49 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:33474 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727838AbeHHRxr (ORCPT ); Wed, 8 Aug 2018 13:53:47 -0400 Received: by mail-wm0-f68.google.com with SMTP id r24-v6so956640wmh.0 for ; Wed, 08 Aug 2018 08:33:36 -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=DW0C9V3JvjZMYtKc8VK2o7U2J9FYgSOIQQygiNDbrgo=; b=AcuLJY17W5Clw2yPL5HLD6Zj836DwoaBCJaGP+qN0/Y43HV50mrYYtYYqk2g0jc5dI wd6kpW8QSnFeZCA+aTIDvicCoF/3c9f1s8FlRMEhisMjdBLYNAx95XuE0Os2yGdjIaI3 +SCJ70xWZUGUsGafHrxPQjv4OaFwaD2CElfJhalZ7uds3s8VdEfbm/Ppl8w0xUc9G/m9 tB0sdr/1VtZs+OShiP45q9K0juxDsN9SLMKZBOYHkYKCBt90SdbENcs2DIl+r+Iz2vg+ p4skoT8ny2aLmTgtM/kuyX8zj0UHZBvtyh/N+/pcdzAOu8GGShyguIP5OHLOwI3bblhH NiKQ== 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=DW0C9V3JvjZMYtKc8VK2o7U2J9FYgSOIQQygiNDbrgo=; b=O9ChEZcciZq6iSCCMTcWvxyq9m9wf3dijKbnBd9nysdpC61f4J5xhDr4K5/5lWuW8A +bfj9oLIVq8b70iqwxdJmDRIep/eGJje5WMRbUsm5eNwzEfrOr+tcvjPGUdJgbirN9Ps BKJWVHu7fGjvMqWpIR4ichT+DNR0//vvgniluQdqOUoSuFga+oVtW9AUKWv9DcwbQSxP LWzYwt1wkRTQX6rpYJdIzV0BLLgro7R4xneoDHclgJGW49X1JDeJoizXu/VmunoYWw98 kSqcoH7CGFc3343hrlRB4JezGyLa+ncvC2IZCLM6rKm5ODrggRDZXndX0/LgDC2qPbMJ yqoQ== X-Gm-Message-State: AOUpUlHaDiUpYxzFmcZ0sy7d7Ewj5JxDxp4G5cJrOfADjf3mLOTWM+y2 pLROq/+gbSVdsjoYT0K+4OeQPw== X-Received: by 2002:a1c:8587:: with SMTP id h129-v6mr2050951wmd.105.1533742416039; Wed, 08 Aug 2018 08:33:36 -0700 (PDT) Received: from brgl-bgdev.lan (LFbn-MAR-1-609-89.w90-118.abo.wanadoo.fr. [90.118.185.89]) by smtp.gmail.com with ESMTPSA id s2-v6sm5240915wrw.52.2018.08.08.08.33.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Aug 2018 08:33:35 -0700 (PDT) From: Bartosz Golaszewski To: Jonathan Corbet , Sekhar Nori , Kevin Hilman , Russell King , Arnd Bergmann , Greg Kroah-Hartman , David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger , Grygorii Strashko , "David S . Miller" , Srinivas Kandagatla , Naren , Mauro Carvalho Chehab , Andrew Morton , Lukas Wunner , Dan Carpenter , Florian Fainelli , Ivan Khoronzhuk , Sven Van Asbroeck , Paolo Abeni , Alban Bedel , Rob Herring , David Lechner , Andrew Lunn Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, linux-mtd@lists.infradead.org, linux-omap@vger.kernel.org, netdev@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 05/28] nvmem: remove the name field from struct nvmem_device Date: Wed, 8 Aug 2018 17:31:27 +0200 Message-Id: <20180808153150.23444-6-brgl@bgdev.pl> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180808153150.23444-1-brgl@bgdev.pl> References: <20180808153150.23444-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_device_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 b040370292a7..6c825ce866b6 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; @@ -712,7 +711,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_device_name(nvmem)); mutex_lock(&nvmem_mutex); nvmem->users--; -- 2.18.0