From patchwork Sat Jun 5 09:37:21 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wan ZongShun X-Patchwork-Id: 54747 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 5D936B7D1C for ; Sat, 5 Jun 2010 19:39:13 +1000 (EST) Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1OKpp4-00038y-9s; Sat, 05 Jun 2010 09:37:46 +0000 Received: from mail-pw0-f49.google.com ([209.85.160.49]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1OKpp0-00037U-Tl; Sat, 05 Jun 2010 09:37:43 +0000 Received: by pwi2 with SMTP id 2so1011378pwi.36 for ; Sat, 05 Jun 2010 02:37:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:content-type :content-transfer-encoding; bh=bHQDyXfoS8jUc0VZQXZiq67cOJkXs5ojwDjHUOfmI/A=; b=cuneHHQEGvYQhivK5UX2mNnqX9sacB7wDw+PD669cOWbX2PPrBlLXKAXRKIdAnuULH TxxDKZ3yCZMxm7YIcxvNTwO8ff1wlVu9PmHPJ0d7+eQ4JBjJTo+J4idBiuOttlbrI64m ZsVz9f3PY9zTBtRb7Q1t5xnblJU6xkF0jmVv4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding; b=d+n+0tTlLYM6FTJs/iMaIleDROBcy9r+Mip0viJTL/NrlY8pX/J+68bDhEWuxfqdJN FjGnLtxgA0NMsXETA6dNDN7f7xP7y3kl7iWLEaaI8Ovh4egkDuqHRbpIXZJInRp+l6Nt s8v8cuh5FCwlcF3Tr68FpoN9QeptvHdBVv+VM= Received: by 10.142.66.5 with SMTP id o5mr8783091wfa.159.1275730660696; Sat, 05 Jun 2010 02:37:40 -0700 (PDT) Received: from [192.168.1.4] ([58.39.231.84]) by mx.google.com with ESMTPS id 20sm1501447pzk.15.2010.06.05.02.37.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 05 Jun 2010 02:37:40 -0700 (PDT) Message-ID: <4C0A1AD1.5090008@gmail.com> Date: Sat, 05 Jun 2010 17:37:21 +0800 From: Wan ZongShun User-Agent: Thunderbird 2.0.0.24 (X11/20100411) MIME-Version: 1.0 To: David Woodhouse , Eric Miao Subject: [PATCH] MTD/pxa: use __devexit, __devinit and __devexit_p for pxa3xx nand X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20100605_053743_093837_2F8E611D X-CRM114-Status: GOOD ( 14.59 ) X-Spam-Score: -0.1 (/) X-Spam-Report: SpamAssassin version 3.3.1 on bombadil.infradead.org summary: Content analysis details: (-0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.160.49 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is freemail (mcuos.com[at]gmail.com) -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: linux-mtd , linux-arm-kernel 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 is to use __devexit, __devinit and __devexit_p for pxa3xx nand driver. Signed-off-by: Wan ZongShun --- drivers/mtd/nand/pxa3xx_nand.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c index e02fa4f..7ba1853 100644 --- a/drivers/mtd/nand/pxa3xx_nand.c +++ b/drivers/mtd/nand/pxa3xx_nand.c @@ -1206,7 +1206,7 @@ static void pxa3xx_nand_init_mtd(struct mtd_info *mtd, this->chip_delay = 25; } -static int pxa3xx_nand_probe(struct platform_device *pdev) +static int __devinit pxa3xx_nand_probe(struct platform_device *pdev) { struct pxa3xx_nand_platform_data *pdata; struct pxa3xx_nand_info *info; @@ -1354,7 +1354,7 @@ fail_free_mtd: return ret; } -static int pxa3xx_nand_remove(struct platform_device *pdev) +static int __devexit pxa3xx_nand_remove(struct platform_device *pdev) { struct mtd_info *mtd = platform_get_drvdata(pdev); struct pxa3xx_nand_info *info = mtd->priv; @@ -1419,7 +1419,7 @@ static struct platform_driver pxa3xx_nand_driver = { .name = "pxa3xx-nand", }, .probe = pxa3xx_nand_probe, - .remove = pxa3xx_nand_remove, + .remove = __devexit_p(pxa3xx_nand_remove), .suspend = pxa3xx_nand_suspend, .resume = pxa3xx_nand_resume, };