1 --- a/drivers/mtd/nand/rbppc_nand.c
2 +++ b/drivers/mtd/nand/rbppc_nand.c
3 @@ -130,10 +130,10 @@ static int rbppc_nand_probe(struct of_de
5 info = kmalloc(sizeof(*info), GFP_KERNEL);
7 - rdy = of_get_property(pdev->node, "rdy", NULL);
8 - nce = of_get_property(pdev->node, "nce", NULL);
9 - cle = of_get_property(pdev->node, "cle", NULL);
10 - ale = of_get_property(pdev->node, "ale", NULL);
11 + rdy = of_get_property(pdev->dev.of_node, "rdy", NULL);
12 + nce = of_get_property(pdev->dev.of_node, "nce", NULL);
13 + cle = of_get_property(pdev->dev.of_node, "cle", NULL);
14 + ale = of_get_property(pdev->dev.of_node, "ale", NULL);
16 if (!rdy || !nce || !cle || !ale) {
17 printk(KERN_ERR "rbppc_nand_probe: GPIO properties are missing\n");
18 @@ -180,7 +180,7 @@ static int rbppc_nand_probe(struct of_de
20 info->localbus = ioremap_nocache(res.start, res.end - res.start + 1);
22 - if (of_address_to_resource(pdev->node, 0, &res)) {
23 + if (of_address_to_resource(pdev->dev.of_node, 0, &res)) {
24 printk("rbppc_nand_probe: No reg property found\n");
27 @@ -222,12 +222,11 @@ static struct of_device_id rbppc_nand_id
30 static struct of_platform_driver rbppc_nand_driver = {
32 .probe = rbppc_nand_probe,
33 - .match_table = rbppc_nand_ids,
37 + .of_match_table = rbppc_nand_ids,