From patchwork Wed Jan 7 16:41:58 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan Wu X-Patchwork-Id: 17166 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@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 A1BD0474C2 for ; Thu, 8 Jan 2009 03:58:15 +1100 (EST) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.68 #1 (Red Hat Linux)) id 1LKbhk-0003d6-7J; Wed, 07 Jan 2009 16:56:28 +0000 Received: from wf-out-1314.google.com ([209.85.200.171]) by bombadil.infradead.org with esmtp (Exim 4.68 #1 (Red Hat Linux)) id 1LKbT8-0001EN-1g for linux-mtd@lists.infradead.org; Wed, 07 Jan 2009 16:41:22 +0000 Received: by wf-out-1314.google.com with SMTP id 28so10155932wfc.24 for ; Wed, 07 Jan 2009 08:41:21 -0800 (PST) Received: by 10.115.19.19 with SMTP id w19mr15370454wai.71.1231346481747; Wed, 07 Jan 2009 08:41:21 -0800 (PST) Received: from localhost ([220.232.68.225]) by mx.google.com with ESMTPS id q20sm28024191pog.22.2009.01.07.08.41.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 07 Jan 2009 08:41:21 -0800 (PST) From: Bryan Wu To: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] Blackfin NFC Driver: mark bf5xx_nand_add_partition() as __devinit Date: Thu, 8 Jan 2009 00:41:58 +0800 Message-Id: <1231346519-28603-3-git-send-email-cooloney@kernel.org> X-Mailer: git-send-email 1.5.6 In-Reply-To: <1231346519-28603-1-git-send-email-cooloney@kernel.org> References: <1231346519-28603-1-git-send-email-cooloney@kernel.org> X-Bad-Reply: References and In-Reply-To but no 'Re:' in Subject. X-Spam-Score: 0.4 (/) X-Spam-Report: SpamAssassin version 3.2.5 on bombadil.infradead.org summary: Content analysis details: (0.4 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.4 SUBJECT_FUZZY_TION Attempt to obfuscate words in Subject: X-Mailman-Approved-At: Wed, 07 Jan 2009 11:56:26 -0500 Cc: Bryan Wu , Mike Frysinger X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.9 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Mike Frysinger the bf5xx_nand_add_partition() func is only called by __devinit functions, so put it into the __devinit section as well Signed-off-by: Mike Frysinger Signed-off-by: Bryan Wu --- drivers/mtd/nand/bf5xx_nand.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mtd/nand/bf5xx_nand.c b/drivers/mtd/nand/bf5xx_nand.c index 5c6056e..520314d 100644 --- a/drivers/mtd/nand/bf5xx_nand.c +++ b/drivers/mtd/nand/bf5xx_nand.c @@ -630,7 +630,7 @@ static int bf5xx_nand_hw_init(struct bf5xx_nand_info *info) /* * Device management interface */ -static int bf5xx_nand_add_partition(struct bf5xx_nand_info *info) +static int __devinit bf5xx_nand_add_partition(struct bf5xx_nand_info *info) { struct mtd_info *mtd = &info->mtd;