base-files: define yes/no as valid boolean options
[openwrt/staging/lynxis/omap.git] / target / linux / mvebu / patches-3.10 / 0108-mtd-nand-pxa3xx-Use-of_machine_is_compatible.patch
1 From baef6bdc8a3e9cb30ab254fd23eb655d592a19df Mon Sep 17 00:00:00 2001
2 From: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
3 Date: Tue, 14 May 2013 08:15:22 -0300
4 Subject: [PATCH 108/203] mtd: nand: pxa3xx: Use of_machine_is_compatible()
5
6 This patch replaces cpu_is_pxa3xx() with of_machine_is_compatible()
7 which allows to build this driver for other platforms than ARCH_PXA.
8
9 Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
10 Tested-by: Nikita Kiryanov <nikita@compulab.co.il>
11 Acked-by: Igor Grinberg <grinberg@compulab.co.il>
12 Reviewed-by: Haojian Zhuang <haojian.zhuang@gmail.com>
13 Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
14 Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
15 ---
16 drivers/mtd/nand/pxa3xx_nand.c | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19 --- a/drivers/mtd/nand/pxa3xx_nand.c
20 +++ b/drivers/mtd/nand/pxa3xx_nand.c
21 @@ -1094,7 +1094,7 @@ static int alloc_nand_resource(struct pl
22 * bindings. It can be removed once we have a prober DMA controller
23 * framework for DT.
24 */
25 - if (pdev->dev.of_node && cpu_is_pxa3xx()) {
26 + if (pdev->dev.of_node && of_machine_is_compatible("marvell,pxa3xx")) {
27 info->drcmr_dat = 97;
28 info->drcmr_cmd = 99;
29 } else {