mtd: nand: pxa3xx: Use of_machine_is_compatible()
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Mon Aug 5 16:59:04 EDT 2013
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=a33e435c2822d9c6351deed1cda0184638cfbb42
Commit: a33e435c2822d9c6351deed1cda0184638cfbb42
Parent: 0a60d049812e959b43b0556ef5b914d0900b6283
Author: Ezequiel Garcia <ezequiel.garcia at free-electrons.com>
AuthorDate: Tue May 14 08:15:22 2013 -0300
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Mon Aug 5 20:57:28 2013 +0100
mtd: nand: pxa3xx: Use of_machine_is_compatible()
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 <ezequiel.garcia at free-electrons.com>
Tested-by: Nikita Kiryanov <nikita at compulab.co.il>
Acked-by: Igor Grinberg <grinberg at compulab.co.il>
Reviewed-by: Haojian Zhuang <haojian.zhuang at gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
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 {
More information about the linux-mtd-cvs
mailing list