summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/pxa3xx_nand.c
diff options
context:
space:
mode:
authorEzequiel Garcia2013-05-14 13:15:22 +0200
committerDavid Woodhouse2013-08-05 21:57:28 +0200
commita33e435c2822d9c6351deed1cda0184638cfbb42 (patch)
treec88bc8cf03f818d79505c5b4873e1763410ff533 /drivers/mtd/nand/pxa3xx_nand.c
parentmtd: nand: pxa3xx: Set info->use_dma properly (diff)
downloadkernel-qcow2-linux-a33e435c2822d9c6351deed1cda0184638cfbb42.tar.gz
kernel-qcow2-linux-a33e435c2822d9c6351deed1cda0184638cfbb42.tar.xz
kernel-qcow2-linux-a33e435c2822d9c6351deed1cda0184638cfbb42.zip
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@free-electrons.com> Tested-by: Nikita Kiryanov <nikita@compulab.co.il> Acked-by: Igor Grinberg <grinberg@compulab.co.il> Reviewed-by: Haojian Zhuang <haojian.zhuang@gmail.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/nand/pxa3xx_nand.c')
-rw-r--r--drivers/mtd/nand/pxa3xx_nand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c
index cef1eeb15d52..8386e9a5ec88 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 {