From patchwork Fri Jan 25 22:44:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 2047771 Return-Path: X-Original-To: patchwork-spi-devel-general@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) by patchwork2.kernel.org (Postfix) with ESMTP id 71B7DDF23E for ; Fri, 25 Jan 2013 22:46:19 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=sfs-ml-4.v29.ch3.sourceforge.com) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1Tys2M-0004i7-0E; Fri, 25 Jan 2013 22:46:18 +0000 Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1Tys2L-0004hy-1V for spi-devel-general@lists.sourceforge.net; Fri, 25 Jan 2013 22:46:17 +0000 X-ACL-Warn: Received: from moutng.kundenserver.de ([212.227.17.9]) by sog-mx-4.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1Tys2G-0002c5-IL for spi-devel-general@lists.sourceforge.net; Fri, 25 Jan 2013 22:46:16 +0000 Received: from wuerfel.lan (HSI-KBW-46-223-90-92.hsi.kabel-badenwuerttemberg.de [46.223.90.92]) by mrelayeu.kundenserver.de (node=mreu0) with ESMTP (Nemesis) id 0MLkJD-1Ty2gR07rH-000yYi; Fri, 25 Jan 2013 23:45:48 +0100 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 14/19] spi/atmel: remove incorrect __exit_p() Date: Fri, 25 Jan 2013 22:44:13 +0000 Message-Id: <1359153858-31992-15-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 1.8.0 In-Reply-To: <1359153858-31992-1-git-send-email-arnd@arndb.de> References: <1359123276-15833-1-git-send-email-arnd@arndb.de> <1359153858-31992-1-git-send-email-arnd@arndb.de> X-Provags-ID: V02:K0:xRzsLCxLc/jnDPphlq+P9w7vDCSO0jgfaCDtHHuOvE8 eb3nc+W2nJr67jdBt98ZvuhezHmhnq8/7RQZbHuWA7WcFJj2n6 WfhN88Ty8LdVaTUXdFG6mY8e+WGtNmjkVZ1VgYtHRTLVfP+MeD cwEei5W6A+GB6KRCTrVxckOsg57s8TLj7gUwVHHUaIXlktiEGT 3IHFCFHRlXurd3u+GlQ76MlKp+GXhC1RLrzVwJuE96biwwPyac owuf04M32+/RnOMbLZwsprQZrQO3qIMVhnaQszE6dyuZDYGib+ g1EYHlbdfzNIb+/eLCZc40eAoZYxXSpsWm0dvObmuD7t00wHQ3 EqRKOOTeTKobIVZdvNP/bL+EJIu4CIEsVydlWAHzP X-Spam-Score: -0.0 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [212.227.17.9 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record X-Headers-End: 1Tys2G-0002c5-IL Cc: spi-devel-general@lists.sourceforge.net, Nicolas Ferre , linux-kernel@vger.kernel.org, Arnd Bergmann X-BeenThere: spi-devel-general@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: Linux SPI core/device drivers discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: spi-devel-general-bounces@lists.sourceforge.net Since we no longer allow building without hotplug, the atmel_spi_remove function is always present and we should not use __exit_p() to refer to it. Without this patch, building at91_dt_defconfig results in: drivers/spi/spi-atmel.c:1006:12: warning: 'atmel_spi_remove' defined but not used [-Wunused-function] Signed-off-by: Arnd Bergmann Cc: Nicolas Ferre Cc: Grant Likely Cc: spi-devel-general@lists.sourceforge.net Acked-by: Nicolas Ferre --- drivers/spi/spi-atmel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-atmel.c b/drivers/spi/spi-atmel.c index ab34497..656d137 100644 --- a/drivers/spi/spi-atmel.c +++ b/drivers/spi/spi-atmel.c @@ -1088,7 +1088,7 @@ static struct platform_driver atmel_spi_driver = { .suspend = atmel_spi_suspend, .resume = atmel_spi_resume, .probe = atmel_spi_probe, - .remove = __exit_p(atmel_spi_remove), + .remove = atmel_spi_remove, }; module_platform_driver(atmel_spi_driver);