From patchwork Fri Jun 8 14:48:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 138056 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp964814lji; Fri, 8 Jun 2018 07:48:43 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLNivw25KTZv6MepdJ7bNA4yZar9cb7AdqAQsynccLctPOiB2CTZ7agBUiudvqvi/B8C7T0 X-Received: by 2002:a62:c8a:: with SMTP id 10-v6mr6394768pfm.27.1528469322875; Fri, 08 Jun 2018 07:48:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528469322; cv=none; d=google.com; s=arc-20160816; b=JbuqPovE99oPo2eQ3ZjrBBbdDjtyvrAaRykjLc69rR0jYNiqjLtoqoh/uCOGL/WiLn im8NX3EMepK+wlahuRMVOlXkHEZMcrekQIdAAqDs2Qsd1TbY4poqic8RNFdHt2DZGkPa D06T/Wq8t+hatBhUcik9EwaBo8o1m6pIo9qhTN+FOlxtAnieqlfQykMax1Z/9kroW972 coO1tthqZECM0DOnzGPGBDPt/aA/OIBb3M5ZB9+6W5/YSe7iyngICguT3hCHZsHoSkqP dpT29Jn7JJmjA6Uk3ZbaTzx+ozdzTk7NBqdLYfxkg4F/MQp/jFMNxpWWwyjfJX7DzfTm v2oA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=wyU87nvlT9nOhzk8vPUOnmTT5vNQHtN2eOAkJy3rA1s=; b=yYCGQH4g7cEu+9G5B7BD9gp77hzGLdf5eROIhCPKgsACC1Hl/e2rE/93sEPHCyipxt XPPLDl1sGsLtAVLnObW9MNQZRV8vpPp/m1c6wDEoc7Grmar8A5HRuDgjwSejdoKknL4y L0T2LcdK0meHBKFm49Ae8c5VUmepSVX74d23OrYRRLCNqJw03k+Z2wgYMCIiKj/5ySmT IJkpLgiCqTdd1dEWYD4cnWHrWRlyEIGAbXlEDbH0TEE26blF7puxe2oPORYPYuwuY3n+ ItuR7KxSoBbHqDw9GVGRvddxjLxaXPgRUF1RkhW56LKdXPP4wXhL2D/dWqqufHEJ2w37 rMUw== ARC-Authentication-Results: i=1; mx.google.com; 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 a95-v6si28161429pla.401.2018.06.08.07.48.42; Fri, 08 Jun 2018 07:48:42 -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; 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 S1752837AbeFHOsk (ORCPT + 30 others); Fri, 8 Jun 2018 10:48:40 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:45275 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752349AbeFHOsi (ORCPT ); Fri, 8 Jun 2018 10:48:38 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue007 [212.227.15.129]) with ESMTPA (Nemesis) id 0MXjQA-1fnvcr3nNu-00WVrN; Fri, 08 Jun 2018 16:48:36 +0200 From: Arnd Bergmann To: Lee Jones Cc: Arnd Bergmann , Enric Balletbo i Serra , Benson Leung , Gwendal Grignou , Andy Shevchenko , linux-kernel@vger.kernel.org Subject: [PATCH] mfd: cros_ec: remove unused __remove function Date: Fri, 8 Jun 2018 16:48:06 +0200 Message-Id: <20180608144834.3003465-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K1:I8b5PuilMYRZuVS6qnhdQDSK3oqAhID8M/AIRdrdB9ntEw0k/gf 2ND6uSajIgDqNlqzkVLjrL4zAHrBPPcyBJONXhIdkTeFJtyQIx5YvTQiBYgXOfIOdeqLynS YL+4KEuHBmBFryr6ibXdpgJ5m9jp5AT4oXQ5TA0uBIcu7rGvQSvgP9+VT60NIH8rAMygk3r FfBgO2G0QEzxADPc5DLMg== X-UI-Out-Filterresults: notjunk:1; V01:K0:mWuIeL4qvME=:9xrF5I8OEuTV3Z/tz7dPcZ axyRixxTYM1Vl81DiovBTMJ+Xo34DUvWCyvp15XdijEHzqwnSjzfC8Qz38I++wCDemzja0NDV a3DbMysOzPjXaFDeGnx/YM+DCwviDeq/kyowTt/fQbAildJP7DMp130YDCaEfywh6/WD4FPsD LO+u7xGuOj+z3l2rmiog1KHIS2xVo70awjISL5dlAsfkS5WRX18+faCREdW6YM3xIaOuKbFnb zExmSPqP+TVUTEj9loLDTFY9nMGjUZ5pPrus7vfuD6TCJQfOar8vCyz+8EIS2n23WjRaWJdtX 57s1S+Ac+Wrx34tqasAU3Z2YqGUr2p3wXERHRONAAB8gy1Mrr5tNjpEhq5HWhVY4GWi9YQUj5 bBONb9KCj16vBXmCFj/zotSue+dCJUaXLpzg0n//POpw966OBmF7ebaTvTRHB32wDGhkUOvi/ zZ4fayZOCODGMvsvmccAjqoeAbgz+z1lZsBgIBZN+uC/NE1t8KD17eE68qfYmweFjdmUQmlA8 rnHy+nnt5JKJdPBRUckdb+yuAf/U8Gy6jhQzDC61qfxsCIqehYJ0E42w2e5EXdNfY+XUfspW8 gMUdNDbB5qqJLvfZsHgR9vdB5HSqSTi2KW7yvfvhc29u8z8hC22+bDNZkv6AodnZpOidnAxRE DuP8O4aDnOJ/VyDR5yfnQqHWgblBafxs/OrBjDFjb2+wP7QgP9BxeQP/M40Brw/Zif3k= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This function is no longer called, so we get a harmless warning until it is removed as well: drivers/mfd/cros_ec_dev.c:265:13: error: '__remove' defined but not used [-Werror=unused-function] Fixes: 3aa2177e4787 ("mfd: cros_ec: Use devm_kzalloc for private data") Signed-off-by: Arnd Bergmann --- drivers/mfd/cros_ec_dev.c | 2 -- 1 file changed, 2 deletions(-) -- 2.9.0 diff --git a/drivers/mfd/cros_ec_dev.c b/drivers/mfd/cros_ec_dev.c index dfc9f131aabe..4199cdd4ff89 100644 --- a/drivers/mfd/cros_ec_dev.c +++ b/drivers/mfd/cros_ec_dev.c @@ -262,8 +262,6 @@ static const struct file_operations fops = { #endif }; -static void __remove(struct device *dev) { } - static void cros_ec_sensors_register(struct cros_ec_dev *ec) { /*