Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 {