From: Ezequiel Garcia Date: Tue, 14 May 2013 11:15:22 +0000 (-0300) Subject: mtd: nand: pxa3xx: Use of_machine_is_compatible() X-Git-Tag: MMI-PSA29.97-13-9~13677^2~137 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a33e435c2822d9c6351deed1cda0184638cfbb42;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Tested-by: Nikita Kiryanov Acked-by: Igor Grinberg Reviewed-by: Haojian Zhuang Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- 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 {