From patchwork Sat Jun 5 09:07:06 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wan ZongShun X-Patchwork-Id: 54742 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (unknown [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 C4C85B7D1C for ; Sat, 5 Jun 2010 19:10:16 +1000 (EST) Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1OKpMf-0003oa-KE; Sat, 05 Jun 2010 09:08:25 +0000 Received: from mail-px0-f177.google.com ([209.85.212.177]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1OKpLc-0002nQ-K7; Sat, 05 Jun 2010 09:07:22 +0000 Received: by pxi1 with SMTP id 1so644955pxi.36 for ; Sat, 05 Jun 2010 02:07:18 -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:subject:content-type :content-transfer-encoding; bh=Qppy1LO5W6aP18J/GjvrPyCwFRgAaRaWgQFZyxDDbk0=; b=H+VS/nrCMhqlpS6cPUUTcrKF45tqo0vkDD/6AZ7WF5qljmSSeH3VFpj7WS+uAr9721 jVsmtK82innYzqg5WsLXxoGDc/hhmOLw2zqEnHTl8xeroctZxDD9ZlljptRwsR02dnwG OSYNvGB0aLNDnXX9SCVyIWIlcU68CJiLCpoTo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=BeHoeQPUZxbubLVTiydn0hCbLKcVEIDj8d6k+1XinIKWSufcUMu84jHc2HOC3CzaU1 UW73PISoGZdADTpTEKglm3p8DmezrqQUIteGvSZAJrxHhNl1C/8iP84kasW4cbdPwt3b EvlbWfD7/VjsYlhhih+cle9fihFQQ7x3820SI= Received: by 10.114.162.24 with SMTP id k24mr9485351wae.158.1275728838376; Sat, 05 Jun 2010 02:07:18 -0700 (PDT) Received: from [192.168.1.4] ([58.39.231.84]) by mx.google.com with ESMTPS id a23sm16788913wam.2.2010.06.05.02.07.14 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 05 Jun 2010 02:07:17 -0700 (PDT) Message-ID: <4C0A13BA.6050700@gmail.com> Date: Sat, 05 Jun 2010 17:07:06 +0800 From: Wan ZongShun User-Agent: Thunderbird 2.0.0.24 (X11/20100411) MIME-Version: 1.0 To: David Woodhouse , Eric Miao , linux-arm-kernel , linux-mtd Subject: [PATCHv2 1/3] MTD/pxa: use __devinit for pxa2xx_flash_probe X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20100605_050721_523038_E37315E9 X-CRM114-Status: GOOD ( 14.28 ) 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 FREEMAIL_FROM Sender email is freemail (mcuos.com[at]gmail.com) -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.212.177 listed in list.dnswl.org] -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 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 the '__devinit' for pxa2xx_flash_probe. Signed-off-by: Wan ZongShun Acked-by: Eric Miao --- drivers/mtd/maps/pxa2xx-flash.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mtd/maps/pxa2xx-flash.c b/drivers/mtd/maps/pxa2xx-flash.c index dd90880..d8ae634 100644 --- a/drivers/mtd/maps/pxa2xx-flash.c +++ b/drivers/mtd/maps/pxa2xx-flash.c @@ -51,7 +51,7 @@ struct pxa2xx_flash_info { static const char *probes[] = { "RedBoot", "cmdlinepart", NULL }; -static int __init pxa2xx_flash_probe(struct platform_device *pdev) +static int __devinit pxa2xx_flash_probe(struct platform_device *pdev) { struct flash_platform_data *flash = pdev->dev.platform_data; struct pxa2xx_flash_info *info;