diff options
author | Anatolij Gustschin <agust@denx.de> | 2010-06-03 02:37:17 +0200 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-06-03 05:02:38 +0200 |
commit | c8a4d0fd2ac2ce6b3409f51fcf918dcb3617ec97 (patch) | |
tree | 20686225fd7bae89f7df804d8745681c79ba2447 /drivers/mtd/nand/socrates_nand.c | |
parent | of/video: fix build breakage in FB drivers (diff) | |
download | linux-c8a4d0fd2ac2ce6b3409f51fcf918dcb3617ec97.tar.xz linux-c8a4d0fd2ac2ce6b3409f51fcf918dcb3617ec97.zip |
of/mtd: nand: fix build breakage in drivers
Fixes build errors in drivers caused by the OF device_node
pointer being moved into struct device
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/mtd/nand/socrates_nand.c')
-rw-r--r-- | drivers/mtd/nand/socrates_nand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/nand/socrates_nand.c b/drivers/mtd/nand/socrates_nand.c index 884852dc7eb4..cc728b12de82 100644 --- a/drivers/mtd/nand/socrates_nand.c +++ b/drivers/mtd/nand/socrates_nand.c @@ -183,7 +183,7 @@ static int __devinit socrates_nand_probe(struct of_device *ofdev, return -ENOMEM; } - host->io_base = of_iomap(ofdev->node, 0); + host->io_base = of_iomap(ofdev->dev.of_node, 0); if (host->io_base == NULL) { printk(KERN_ERR "socrates_nand: ioremap failed\n"); kfree(host); @@ -244,7 +244,7 @@ static int __devinit socrates_nand_probe(struct of_device *ofdev, #ifdef CONFIG_MTD_OF_PARTS if (num_partitions == 0) { num_partitions = of_mtd_parse_partitions(&ofdev->dev, - ofdev->node, + ofdev->dev.of_node, &partitions); if (num_partitions < 0) { res = num_partitions; |