From patchwork Fri Aug 10 08:05:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 10562381 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D78B1157B for ; Fri, 10 Aug 2018 08:07:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C95B527F10 for ; Fri, 10 Aug 2018 08:07:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BCC322B791; Fri, 10 Aug 2018 08:07:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 69CA92B782 for ; Fri, 10 Aug 2018 08:07:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=VJ2R4oqqGxZMTbnInNAVLjfzdlAOvtf9MsSZoLQxwiY=; b=PTyWbe5OGBs1PJF+OYqyOWzYBK zgF6LNmJCbZrolo6aIVaTXGsfZhmfRBGFfgvcRYq09T96e7CS+w0Dxwb/aW7EWs9zqGa/1IqXj0jE NjrE5XnsTnflNcntdeq+OzWNHMSDr/UFpM9hJ6LgBhc7SXQvCZdUuNjds3TC3F1HQMoWee7rCpGbx kYEloMIhUfu/ULJBxG/CcexPBlcnN4EeYDHDu2wUCH9gcdKMZ3RrJSRv6CxDbNV8HJwHoNX6iMh3L SvHlJJpqOsFI5b2FzizM/CjT/ZqKzxKH+w5NNEMwiigUpkx3IaZ0ph7A6GEmahqi2QtxWO7as/gbz eLOpt7VQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fo2Ro-0003tS-O9; Fri, 10 Aug 2018 08:07:00 +0000 Received: from casper.infradead.org ([85.118.1.10]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fo2Ql-0002R4-Ly for linux-arm-kernel@bombadil.infradead.org; Fri, 10 Aug 2018 08:05:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=paBZJybUvvxWZ7I1PKX8NyqdoyvAh8f59AsdTQsxQjE=; b=kQrJVNF+x596tnQpECbUE7zrQ Avi4UsgBS2LDQ1nnETVqA37MTc/yGm2syMA+TxpWc4ZkHhP3G1UdDaPr0Pesy70p0ex2KiCL9uQ5/ Kc/ZAySHcD81SNROfSOypSxcDl9UscZxFGPEShaa8++HEgc3LdbKDKMx9iWt+zNJxm3QOoBf4GhoE 54a5WB/pYZu0koH/44OGEUXYCpFVwIzTkVwHv86mpvyECno3x+oAfXiuuMD1CTdttiQnW6cL49uw0 r0GSdIiVpQChig1Nn2wl6c5qciqeR2AB8z5Fvi/uV8z0hZ8zxIAaEkAy5gbotrGfO5aXZHC0Jxqts lrq4Mp8XQ==; Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fo2Qi-0000M1-CZ for linux-arm-kernel@lists.infradead.org; Fri, 10 Aug 2018 08:05:54 +0000 Received: by mail-wr1-x443.google.com with SMTP id h10-v6so7461347wre.6 for ; Fri, 10 Aug 2018 01:05:42 -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=JcVFY12xe6RJPQo3k2ew3e/7KWHcCbHWwrDrHdgzKwiG1tcFhCN7MC5WzkqBPBaYFB 3j8DzRgZCmeUP3whHv+PpJuGCPSmXNQqCCLYo1R+NQFyPg04JVZpHPnyLAbd+B5Yfub4 6Sg6Cpzvfdo2msCrbCb4+VrP2qsoyYP0Z5qEVjxgn2u35v4aDamBy+NMN5Kqgm9ZPXcT dUnJQTnEKGoDkq8XAdQWKEtKWPb5Thp7JExAlZYIZHVDBRI6lAFzbVq6nyodfy3E3EYG GySSIVXZCFc3xy3aUNLx4oE/seK6cfy9KB0Z7DIiOkmOOlUzz5C/y2i3e/4YV1qpLIIi b7Cw== X-Gm-Message-State: AOUpUlEkEFVQDOIMvuvF36Rz8Zcgn2DpWracI3Pj1j5+UF2xNK1Tf3h1 JUFB8F9B4NRL8ZIGDlTDLS1R2w== X-Google-Smtp-Source: AA+uWPxPcUpQhBROdDATdjNUBaS0soH9ECmya+4jv8PLxdtymCewzYsuTuTaB/510RDrzB3C8+q4sw== 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180810_090552_474550_B16E6056 X-CRM114-Status: GOOD ( 19.31 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-doc@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski , linux-mtd@lists.infradead.org, linux-i2c@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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--;