Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp954900imm; Fri, 8 Jun 2018 07:49:18 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLWZ77lHMXjmScE8/vTfpas0lmWOAsDgQDJCtRbJWcE1Oq90Jko2Qkci0A83+kShRGGrIKl X-Received: by 2002:a63:a84f:: with SMTP id i15-v6mr5737576pgp.422.1528469358112; Fri, 08 Jun 2018 07:49:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528469358; cv=none; d=google.com; s=arc-20160816; b=LP2Fb18rMz5cUMAe6AP6t65DUOVKH0+4+EiUzpjtbIaCLM5rksZyZVAgcCVZGYyhre H+1noO7EPfg4gIzDoNdY62V/PajE+vZZT+CfqjFX87GClNjJshK71Z1AcNsICEX27jD5 iWTQbvVzQrFHJPGyMnk9SanXO8vYhaKqqg27ARqPwSDTvZtCh03yxCiLHVi+9fqJ6+2A zjf14I2tgs7Mg9otujDA/HWet2jEDkr9q0Jzrm2l24xt0XWUtfsMgNwpliA4CVFf89ZI kNltpGdMpOLCy65R3rhauA+jR062EbEF3TxjUu1GBNrAc6KyFc2En6NcisZvP4oAkrld ISBw== 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 x25-v6si31065876pgc.605.2018.06.08.07.49.03; Fri, 08 Jun 2018 07:49:18 -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 S1752730AbeFHOsk (ORCPT + 99 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(-) 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) { /* -- 2.9.0