Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2966822imm; Fri, 10 Aug 2018 01:11:46 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxFCTWzJ3QLCMuKbxFy7WGnIZf+USjLkD5kEeCkEiSQVgpowCEmgiNQ9xfrbvw1mabK9PKd X-Received: by 2002:a62:c0c4:: with SMTP id g65-v6mr5961830pfk.72.1533888706087; Fri, 10 Aug 2018 01:11:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533888706; cv=none; d=google.com; s=arc-20160816; b=vWsNleJWKoRzTphF+9vS4uA8gzwGyhwTqUP+Suo/TFlE4QRf5Z++hE9kHwCdFZjnJv Xn6TiTVLctnY7k2AJd/lRCDSVvl3SM4Bifo9iUL/yP9SsoQEZ2baejhA8QsPw+vsAWPq wcMFTFeJrUcKyireBRNiE++6wSaXLFbls5oxsKwbNe3ILW5tn0EK793FtS5DiaNlgUtn gNWvY+IPIpocmWAvg8kGGjP4KQPDNlz91pVh4NB1QKsivvqbyBjijvF7tIV2MsNQjkef HqIDCcBJfRNDbMZeX3cSaMraFGF9XudbsW4XZiAojysJOF5oaH2lopVhvGlzcfnUvODy uP6g== 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=paBZJybUvvxWZ7I1PKX8NyqdoyvAh8f59AsdTQsxQjE=; b=Io5ApU+jHzxBai774jhLpBzu0X+Ir6L6HVaQudVCtoyccXX5xF4JwlY+CvDn1vw9sY ZIQdzzg+F0ZHTLa6gK3htBIgI/l/Vs9JdREZPTBE2mkMzuK71aofxPCFOQTLEjsxcek1 6ompEeHGLAYoPjwiVhgzjk1mipgtGWuVY4TTJSTVUmCw5uNCJt07VcaQUE5S/Ye+sjh6 t8Y5P/UfqZEP6Ubrza1W0hhoOtZb1YQPqbWt0khuLxJZwde9GrwY2CPkCm+fp2ICWBwW uQni3/72przdddNxJ4AfBkbT9Oui3pv1mpCuhGL9nXpDi8j6mX0dpAesj4CqHIKXY9E4 /JuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=JyjIVura; 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 e12-v6si8303178pfn.322.2018.08.10.01.11.31; Fri, 10 Aug 2018 01: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=JyjIVura; 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 S1728021AbeHJKe2 (ORCPT + 99 others); Fri, 10 Aug 2018 06:34:28 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:41050 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727973AbeHJKe1 (ORCPT ); Fri, 10 Aug 2018 06:34:27 -0400 Received: by mail-wr1-f67.google.com with SMTP id j5-v6so7454802wrr.8 for ; Fri, 10 Aug 2018 01:05:41 -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=paBZJybUvvxWZ7I1PKX8NyqdoyvAh8f59AsdTQsxQjE=; b=JyjIVuraEgVEhK5SRVFay0GN4fUY9203oBblBwmIW7ZZ4OdK8tsCQso3CQsJbNTdIC zFZYNw4dGp+6ZtDOm1bXtDQQ5Pdc2+4SP7IRR6tQjk5VFUiCh5sa/kDYUjOJEQO2x9Zl 2h+sE5hE380ywLdTfzvTgCVgFuvXxOJTh3bmwhSY8ivhBoWApOE1UBSYDMyP4nzTKnLy 8vuROWjc+lmUev6WXIB9/5yBbFOKxJIouB3qqfKp0DF+DGaKV/T7FHsNSwrqE3S4TiU+ SVquCkZ6Sm8ltaOC1KOAmRtabfb5mvYJ+PiJByY3+RmldnsUI82Q5PRrgGb8WdC1hcKC W3eA== 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=paBZJybUvvxWZ7I1PKX8NyqdoyvAh8f59AsdTQsxQjE=; b=ho8EdtEJmA7BtELAscZ6Co3CyoikEyuJAMVkm8Pf3MX4bPsV/xE3UK4wmKiXlGOsLh +TNitHA5SW6Fp9gp5ZxZzRYouE5kwSaLLEQoFIut9MF/dN25bsRzJZbTqZiALUwIpwzs 5RnlKD/0lqbl/U/rTDYKaV2V26hh72nz6XPF0t/id2Lh12yAkS7LpbsopvYKApnJ1TOE Gyv9qGbo1+kB+aQ0GNUctLNsu6saa8UauD4T6Ckr67ZACUs/AQa8NgDvp6rNHjB7xW4b 220ld7oOYV20m2gITu8EOOFfY4tEGGeTxnn+1QWpVG33UuSjZhkPCCS6hF1viulUw4jL fDDw== X-Gm-Message-State: AOUpUlEVwSgTtf1tP2kFN5ttOBghaWegG1ZFo7u4msrpNNxxmbDtkz8J vu6bvpOJNV4xK0K6sZzMI/3J/Q== X-Received: by 2002:a5d:458b:: with SMTP id p11-v6mr3507964wrq.122.1533888341327; Fri, 10 Aug 2018 01:05:41 -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 h7-v6sm9546405wrs.8.2018.08.10.01.05.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Aug 2018 01:05:40 -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 v2 05/29] nvmem: remove the name field from struct nvmem_device Date: Fri, 10 Aug 2018 10:05:02 +0200 Message-Id: <20180810080526.27207-6-brgl@bgdev.pl> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180810080526.27207-1-brgl@bgdev.pl> References: <20180810080526.27207-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 31df2e6d6f72..ab3ced2d9a84 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_dev_name(nvmem)); mutex_lock(&nvmem_mutex); nvmem->users--; -- 2.18.0