From patchwork Tue May 14 11:15:22 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ezequiel Garcia X-Patchwork-Id: 243942 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:770:15f::2]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id CB95B2C008C for ; Wed, 15 May 2013 18:40:43 +1000 (EST) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UcDHw-0006Zl-Q3; Tue, 14 May 2013 11:21:10 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UcDDN-00036A-Ns; Tue, 14 May 2013 11:16:17 +0000 Received: from mail-la0-x22f.google.com ([2a00:1450:4010:c03::22f]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UcDDM-00033i-8O for linux-mtd@lists.infradead.org; Tue, 14 May 2013 11:16:16 +0000 Received: by mail-la0-f47.google.com with SMTP id fq12so382179lab.6 for ; Tue, 14 May 2013 04:15:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=DIaDfS8X0qjT4+23eM4ESTpLIBeQW5fvBcrkMeeaTBE=; b=pkj7MFytSFAZK4H98LtInNHOwEY4hMQMX+pr3OrL+nnOpyH1dCYYzwOzKKUcGM4n+Q RgdtqF/MK346NhyaXRaHrdbGD3JK0AbQLOD4kyT1JIcJW+sMumP2DO1pRZ/UlDSmw5ZX DGMYMSjjC50BZnzSInpFj66UGM6JcsIgWfRlNaySgKKNq6YdeuDN19zDzhlCYXkCbSuy 0oc1WhhWZjbNJLEeTRzSQ++hgMusTNnV4g1QWavhrBczweLjF0fOmF3l++HjqBxmEUIQ 46Xpo7RfWLtiertqAGq7gz6tDfxl3COm4/ldq6kSUUZRkCerJ6Zp1QRWsk4IF+HGA3Re ZI5w== X-Received: by 10.152.87.39 with SMTP id u7mr15185123laz.48.1368530153366; Tue, 14 May 2013 04:15:53 -0700 (PDT) Received: from localhost.localdomain (65.222.3.200.ros.express.com.ar. [200.3.222.65]) by mx.google.com with ESMTPSA id mp1sm7103669lbb.5.2013.05.14.04.15.47 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 14 May 2013 04:15:52 -0700 (PDT) From: Ezequiel Garcia To: Subject: [PATCH 2/5] mtd: nand: pxa3xx: Use of_machine_is_compatible() Date: Tue, 14 May 2013 08:15:22 -0300 Message-Id: <1368530125-12959-3-git-send-email-elezegarcia@gmail.com> X-Mailer: git-send-email 1.8.1.5 In-Reply-To: <1368530125-12959-1-git-send-email-elezegarcia@gmail.com> References: <1368530125-12959-1-git-send-email-elezegarcia@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130514_071616_442316_87B18453 X-CRM114-Status: GOOD ( 10.70 ) X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (elezegarcia[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -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: Thomas Petazzoni , Lior Amsalem , Artem Bityutskiy , Lei Wen , Haojian Zhuang , Maen Suleiman , Ezequiel Garcia , Gregory Clement , Neil Zhang , Chao Xie X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.15 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" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Ezequiel Garcia This patch replaces cpu_is_pxa3xx() with of_machine_is_compatible() which allows to build this driver for other platforms than ARCH_PXA. Signed-off-by: Ezequiel Garcia --- drivers/mtd/nand/pxa3xx_nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c index cef1eeb..8386e9a 100644 --- a/drivers/mtd/nand/pxa3xx_nand.c +++ b/drivers/mtd/nand/pxa3xx_nand.c @@ -1094,7 +1094,7 @@ static int alloc_nand_resource(struct platform_device *pdev) * bindings. It can be removed once we have a prober DMA controller * framework for DT. */ - if (pdev->dev.of_node && cpu_is_pxa3xx()) { + if (pdev->dev.of_node && of_machine_is_compatible("marvell,pxa3xx")) { info->drcmr_dat = 97; info->drcmr_cmd = 99; } else {