From patchwork Wed Nov 19 13:16:22 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qinghuang Feng X-Patchwork-Id: 9582 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 AD1ACDDDF0 for ; Thu, 20 Nov 2008 00:18:13 +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 1L2mv1-0006CY-Iv; Wed, 19 Nov 2008 13:16:31 +0000 Received: from ti-out-0910.google.com ([209.85.142.190]) by bombadil.infradead.org with esmtp (Exim 4.68 #1 (Red Hat Linux)) id 1L2mv0-0005Xr-1A for linux-mtd@lists.infradead.org; Wed, 19 Nov 2008 13:16:30 +0000 Received: by ti-out-0910.google.com with SMTP id a21so2271159tia.2 for ; Wed, 19 Nov 2008 05:16:29 -0800 (PST) Received: by 10.110.49.6 with SMTP id w6mr1451450tiw.9.1227100588901; Wed, 19 Nov 2008 05:16:28 -0800 (PST) Received: from localhost ([61.145.234.250]) by mx.google.com with ESMTPS id u12sm843531tia.3.2008.11.19.05.16.26 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 19 Nov 2008 05:16:28 -0800 (PST) From: Qinghuang Feng To: David Woodhouse Subject: [PATCH 2/4] drivers/mtd/nand/cmx270_nand.c: mark {__init|__exit} for {init|exit} functions Date: Wed, 19 Nov 2008 21:16:22 +0800 User-Agent: sniper-patch-carrier/1.06 Message-ID: <492411ac.0c486e0a.3215.0294@mx.google.com> X-Spam-Score: 0.0 (/) Cc: Mike, linux-kernel@vger.kernel.org, David, linux-mtd@lists.infradead.org, Mike Lavender , Rapoport , Hinds 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 Signed-off-by: Qinghuang Feng diff --git a/drivers/mtd/nand/cmx270_nand.c b/drivers/mtd/nand/cmx270_nand.c index fa129c0..c429ea2 100644 --- a/drivers/mtd/nand/cmx270_nand.c +++ b/drivers/mtd/nand/cmx270_nand.c @@ -148,7 +148,7 @@ static int cmx270_device_ready(struct mtd_info *mtd) /* * Main initialization routine */ -static int cmx270_init(void) +static int __init cmx270_init(void) { struct nand_chip *this; const char *part_type; @@ -262,7 +262,7 @@ module_init(cmx270_init); /* * Clean up routine */ -static void cmx270_cleanup(void) +static void __exit cmx270_cleanup(void) { /* Release resources, unregister device */ nand_release(cmx270_nand_mtd);