aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/devicetree/bindings/gpio/led.txt2
-rw-r--r--Documentation/devicetree/bindings/mtd/partition.txt2
-rw-r--r--Documentation/devicetree/usage-model.txt2
-rw-r--r--arch/microblaze/pci/pci-common.c6
-rw-r--r--arch/powerpc/kernel/pci-common.c6
-rw-r--r--arch/powerpc/kernel/vio.c5
-rw-r--r--arch/powerpc/platforms/cell/iommu.c3
-rw-r--r--arch/powerpc/platforms/pseries/iommu.c2
-rw-r--r--arch/sparc/kernel/of_device_64.c2
-rw-r--r--drivers/of/base.c10
-rw-r--r--drivers/of/irq.c2
-rw-r--r--drivers/of/of_mtd.c2
-rw-r--r--include/linux/of.h10
-rw-r--r--include/linux/of_mtd.h2
-rw-r--r--kernel/irq/irqdomain.c8
15 files changed, 34 insertions, 30 deletions
diff --git a/Documentation/devicetree/bindings/gpio/led.txt b/Documentation/devicetree/bindings/gpio/led.txt
index fd2bd56e7195..9bb308abd221 100644
--- a/Documentation/devicetree/bindings/gpio/led.txt
+++ b/Documentation/devicetree/bindings/gpio/led.txt
@@ -55,4 +55,4 @@ run-control {
55 gpios = <&mpc8572 7 0>; 55 gpios = <&mpc8572 7 0>;
56 default-state = "on"; 56 default-state = "on";
57 }; 57 };
58} 58};
diff --git a/Documentation/devicetree/bindings/mtd/partition.txt b/Documentation/devicetree/bindings/mtd/partition.txt
index f114ce1657c2..6e1f61f1e789 100644
--- a/Documentation/devicetree/bindings/mtd/partition.txt
+++ b/Documentation/devicetree/bindings/mtd/partition.txt
@@ -35,4 +35,4 @@ flash@0 {
35 uimage@100000 { 35 uimage@100000 {
36 reg = <0x0100000 0x200000>; 36 reg = <0x0100000 0x200000>;
37 }; 37 };
38]; 38};
diff --git a/Documentation/devicetree/usage-model.txt b/Documentation/devicetree/usage-model.txt
index c5a80099b71c..dca90fe22a90 100644
--- a/Documentation/devicetree/usage-model.txt
+++ b/Documentation/devicetree/usage-model.txt
@@ -312,7 +312,7 @@ device tree for the NVIDIA Tegra board.
312 }; 312 };
313}; 313};
314 314
315At .machine_init() time, Tegra board support code will need to look at 315At .init_machine() time, Tegra board support code will need to look at
316this DT and decide which nodes to create platform_devices for. 316this DT and decide which nodes to create platform_devices for.
317However, looking at the tree, it is not immediately obvious what kind 317However, looking at the tree, it is not immediately obvious what kind
318of device each node represents, or even if a node represents a device 318of device each node represents, or even if a node represents a device
diff --git a/arch/microblaze/pci/pci-common.c b/arch/microblaze/pci/pci-common.c
index ed22bfc5db14..ca8f6e769960 100644
--- a/arch/microblaze/pci/pci-common.c
+++ b/arch/microblaze/pci/pci-common.c
@@ -249,8 +249,7 @@ int pci_read_irq_line(struct pci_dev *pci_dev)
249 } else { 249 } else {
250 pr_debug(" Got one, spec %d cells (0x%08x 0x%08x...) on %s\n", 250 pr_debug(" Got one, spec %d cells (0x%08x 0x%08x...) on %s\n",
251 oirq.size, oirq.specifier[0], oirq.specifier[1], 251 oirq.size, oirq.specifier[0], oirq.specifier[1],
252 oirq.controller ? oirq.controller->full_name : 252 of_node_full_name(oirq.controller));
253 "<default>");
254 253
255 virq = irq_create_of_mapping(oirq.controller, oirq.specifier, 254 virq = irq_create_of_mapping(oirq.controller, oirq.specifier,
256 oirq.size); 255 oirq.size);
@@ -1493,8 +1492,7 @@ static void __devinit pcibios_scan_phb(struct pci_controller *hose)
1493 struct pci_bus *bus; 1492 struct pci_bus *bus;
1494 struct device_node *node = hose->dn; 1493 struct device_node *node = hose->dn;
1495 1494
1496 pr_debug("PCI: Scanning PHB %s\n", 1495 pr_debug("PCI: Scanning PHB %s\n", of_node_full_name(node));
1497 node ? node->full_name : "<NO NAME>");
1498 1496
1499 pcibios_setup_phb_resources(hose, &resources); 1497 pcibios_setup_phb_resources(hose, &resources);
1500 1498
diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c
index 0f75bd500404..edef9afd8858 100644
--- a/arch/powerpc/kernel/pci-common.c
+++ b/arch/powerpc/kernel/pci-common.c
@@ -248,8 +248,7 @@ static int pci_read_irq_line(struct pci_dev *pci_dev)
248 } else { 248 } else {
249 pr_debug(" Got one, spec %d cells (0x%08x 0x%08x...) on %s\n", 249 pr_debug(" Got one, spec %d cells (0x%08x 0x%08x...) on %s\n",
250 oirq.size, oirq.specifier[0], oirq.specifier[1], 250 oirq.size, oirq.specifier[0], oirq.specifier[1],
251 oirq.controller ? oirq.controller->full_name : 251 of_node_full_name(oirq.controller));
252 "<default>");
253 252
254 virq = irq_create_of_mapping(oirq.controller, oirq.specifier, 253 virq = irq_create_of_mapping(oirq.controller, oirq.specifier,
255 oirq.size); 254 oirq.size);
@@ -1628,8 +1627,7 @@ void __devinit pcibios_scan_phb(struct pci_controller *hose)
1628 struct device_node *node = hose->dn; 1627 struct device_node *node = hose->dn;
1629 int mode; 1628 int mode;
1630 1629
1631 pr_debug("PCI: Scanning PHB %s\n", 1630 pr_debug("PCI: Scanning PHB %s\n", of_node_full_name(node));
1632 node ? node->full_name : "<NO NAME>");
1633 1631
1634 /* Get some IO space for the new PHB */ 1632 /* Get some IO space for the new PHB */
1635 pcibios_setup_phb_io_space(hose); 1633 pcibios_setup_phb_io_space(hose);
diff --git a/arch/powerpc/kernel/vio.c b/arch/powerpc/kernel/vio.c
index 7a421e8fe7ca..3052a931f2b5 100644
--- a/arch/powerpc/kernel/vio.c
+++ b/arch/powerpc/kernel/vio.c
@@ -1294,8 +1294,7 @@ static void __devinit vio_dev_release(struct device *dev)
1294 struct iommu_table *tbl = get_iommu_table_base(dev); 1294 struct iommu_table *tbl = get_iommu_table_base(dev);
1295 1295
1296 if (tbl) 1296 if (tbl)
1297 iommu_free_table(tbl, dev->of_node ? 1297 iommu_free_table(tbl, of_node_full_name(dev->of_node));
1298 dev->of_node->full_name : dev_name(dev));
1299 of_node_put(dev->of_node); 1298 of_node_put(dev->of_node);
1300 kfree(to_vio_dev(dev)); 1299 kfree(to_vio_dev(dev));
1301} 1300}
@@ -1519,7 +1518,7 @@ static ssize_t devspec_show(struct device *dev,
1519{ 1518{
1520 struct device_node *of_node = dev->of_node; 1519 struct device_node *of_node = dev->of_node;
1521 1520
1522 return sprintf(buf, "%s\n", of_node ? of_node->full_name : "none"); 1521 return sprintf(buf, "%s\n", of_node_full_name(of_node));
1523} 1522}
1524 1523
1525static ssize_t modalias_show(struct device *dev, struct device_attribute *attr, 1524static ssize_t modalias_show(struct device *dev, struct device_attribute *attr,
diff --git a/arch/powerpc/platforms/cell/iommu.c b/arch/powerpc/platforms/cell/iommu.c
index c264969c9319..dca213666747 100644
--- a/arch/powerpc/platforms/cell/iommu.c
+++ b/arch/powerpc/platforms/cell/iommu.c
@@ -551,8 +551,7 @@ static struct iommu_table *cell_get_iommu_table(struct device *dev)
551 iommu = cell_iommu_for_node(dev_to_node(dev)); 551 iommu = cell_iommu_for_node(dev_to_node(dev));
552 if (iommu == NULL || list_empty(&iommu->windows)) { 552 if (iommu == NULL || list_empty(&iommu->windows)) {
553 printk(KERN_ERR "iommu: missing iommu for %s (node %d)\n", 553 printk(KERN_ERR "iommu: missing iommu for %s (node %d)\n",
554 dev->of_node ? dev->of_node->full_name : "?", 554 of_node_full_name(dev->of_node), dev_to_node(dev));
555 dev_to_node(dev));
556 return NULL; 555 return NULL;
557 } 556 }
558 window = list_entry(iommu->windows.next, struct iommu_window, list); 557 window = list_entry(iommu->windows.next, struct iommu_window, list);
diff --git a/arch/powerpc/platforms/pseries/iommu.c b/arch/powerpc/platforms/pseries/iommu.c
index 07c09cbbfb19..bca220f2873c 100644
--- a/arch/powerpc/platforms/pseries/iommu.c
+++ b/arch/powerpc/platforms/pseries/iommu.c
@@ -1134,7 +1134,7 @@ static void pci_dma_dev_setup_pSeriesLP(struct pci_dev *dev)
1134 if (!pdn || !PCI_DN(pdn)) { 1134 if (!pdn || !PCI_DN(pdn)) {
1135 printk(KERN_WARNING "pci_dma_dev_setup_pSeriesLP: " 1135 printk(KERN_WARNING "pci_dma_dev_setup_pSeriesLP: "
1136 "no DMA window found for pci dev=%s dn=%s\n", 1136 "no DMA window found for pci dev=%s dn=%s\n",
1137 pci_name(dev), dn? dn->full_name : "<null>"); 1137 pci_name(dev), of_node_full_name(dn));
1138 return; 1138 return;
1139 } 1139 }
1140 pr_debug(" parent is %s\n", pdn->full_name); 1140 pr_debug(" parent is %s\n", pdn->full_name);
diff --git a/arch/sparc/kernel/of_device_64.c b/arch/sparc/kernel/of_device_64.c
index 7a3be6f6737a..7bbdc26d9512 100644
--- a/arch/sparc/kernel/of_device_64.c
+++ b/arch/sparc/kernel/of_device_64.c
@@ -580,7 +580,7 @@ static unsigned int __init build_one_device_irq(struct platform_device *op,
580 printk("%s: Apply [%s:%x] imap --> [%s:%x]\n", 580 printk("%s: Apply [%s:%x] imap --> [%s:%x]\n",
581 op->dev.of_node->full_name, 581 op->dev.of_node->full_name,
582 pp->full_name, this_orig_irq, 582 pp->full_name, this_orig_irq,
583 (iret ? iret->full_name : "NULL"), irq); 583 of_node_full_name(iret), irq);
584 584
585 if (!iret) 585 if (!iret)
586 break; 586 break;
diff --git a/drivers/of/base.c b/drivers/of/base.c
index a14f109dcd13..c181b94abc36 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -173,9 +173,9 @@ struct property *of_find_property(const struct device_node *np,
173 return NULL; 173 return NULL;
174 174
175 read_lock(&devtree_lock); 175 read_lock(&devtree_lock);
176 for (pp = np->properties; pp != 0; pp = pp->next) { 176 for (pp = np->properties; pp; pp = pp->next) {
177 if (of_prop_cmp(pp->name, name) == 0) { 177 if (of_prop_cmp(pp->name, name) == 0) {
178 if (lenp != 0) 178 if (lenp)
179