From patchwork Wed Jul 14 09:17:06 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_Bie=C3=9Fmann?= X-Patchwork-Id: 58860 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 4557F1007D1 for ; Wed, 14 Jul 2010 19:19:32 +1000 (EST) Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1OYy68-0003Nq-GM; Wed, 14 Jul 2010 09:17:48 +0000 Received: from moutng.kundenserver.de ([212.227.17.10]) by bombadil.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1OYy66-0003NR-GZ for linux-mtd@lists.infradead.org; Wed, 14 Jul 2010 09:17:47 +0000 Received: from corscience.de (DSL01.212.114.252.242.ip-pool.NEFkom.net [212.114.252.242]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0M0v2R-1PMgfd3CNb-00uZCq; Wed, 14 Jul 2010 11:17:39 +0200 Received: from localhost (unknown [192.168.102.9]) by corscience.de (Postfix) with ESMTP id 17AE251F0D; Wed, 14 Jul 2010 11:17:38 +0200 (CEST) Received: from abiessmann by localhost with local (Exim 4.72) (envelope-from ) id 1OYy60-0006LA-St; Wed, 14 Jul 2010 11:17:41 +0200 From: =?UTF-8?q?Andreas=20Bie=C3=9Fmann?= To: linux-kernel@vger.kernel.org Subject: [PATCH] atmel_nand: Fix warning: 'part_probes' defined but not used Date: Wed, 14 Jul 2010 11:17:06 +0200 Message-Id: <1279099026-24298-1-git-send-email-biessmann@corscience.de> X-Mailer: git-send-email 1.7.1 MIME-Version: 1.0 X-Provags-ID: V02:K0:yinQ5bPc9eZsmmeeY5L3FmyNMK0l2CpHAdiAr93edQ0 t04N6Ho3Dr3zgCE4kHqxWPCOHgH9m9pJW+Hc5PBGHXQnfChihf APqBzi9RWnbBZT7VaS6VCBxXdnELghuno7FbgbbKLknRoW1qsW Opqz9j8yLwxhjpIo7uQcMwSxEsCqjuvLJ7M8s0yfzsV+5tjHuN 1P7odz2T8Ciu59fC5OzlA== X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20100714_051746_770303_4F18786B X-CRM114-Status: GOOD ( 11.43 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.3.1 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, low trust [212.227.17.10 listed in list.dnswl.org] Cc: linux-mtd@lists.infradead.org, David Woodhouse , =?UTF-8?q?Andreas=20Bie=C3=9Fmann?= X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org This patch fixes drivers/mtd/nand/atmel_nand.c:372: warning: 'part_probes' defined but not used which is issued when CONFIG_MTD_PARTITIONS is defined but CONFIG_MTD_CMDLINE_PARTS not. Signed-off-by: Andreas Bießmann --- drivers/mtd/nand/atmel_nand.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c index 04d3088..ccce0f0 100644 --- a/drivers/mtd/nand/atmel_nand.c +++ b/drivers/mtd/nand/atmel_nand.c @@ -364,7 +364,7 @@ static void atmel_nand_hwctl(struct mtd_info *mtd, int mode) } } -#ifdef CONFIG_MTD_PARTITIONS +#ifdef CONFIG_MTD_CMDLINE_PARTS static const char *part_probes[] = { "cmdlinepart", NULL }; #endif