Commit a33e435c authored by Ezequiel Garcia's avatar Ezequiel Garcia Committed by David Woodhouse

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: default avatarEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Tested-by: default avatarNikita Kiryanov <nikita@compulab.co.il>
Acked-by: default avatarIgor Grinberg <grinberg@compulab.co.il>
Reviewed-by: default avatarHaojian Zhuang <haojian.zhuang@gmail.com>
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 0a60d049
...@@ -1094,7 +1094,7 @@ static int alloc_nand_resource(struct platform_device *pdev) ...@@ -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 * bindings. It can be removed once we have a prober DMA controller
* framework for DT. * 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_dat = 97;
info->drcmr_cmd = 99; info->drcmr_cmd = 99;
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment