aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-07-24 17:07:22 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-07-24 17:07:22 -0400
commitf14121ab35912e3d2e57ac9a4ce1f9d4b7baeffb (patch)
tree7d5b4799998760e0a88166185abff1147d4ee04d /arch/powerpc
parent914311c9fb9bc01a215de9d848b72b5449c0e342 (diff)
parente95d8aafa5d911bf523bc47fe89f3336eb8a1b51 (diff)
Merge tag 'dt-for-3.6' of git://sources.calxeda.com/kernel/linux
Pull devicetree updates from Rob Herring: "A small set of changes for devicetree: - Couple of Documentation fixes - Addition of new helper function of_node_full_name - Improve of_parse_phandle_with_args return values - Some NULL related sparse fixes" Grant's busy packing. * tag 'dt-for-3.6' of git://sources.calxeda.com/kernel/linux: of: mtd: nuke useless const qualifier devicetree: add helper inline for retrieving a node's full name of: return -ENOENT when no property usage-model.txt: fix typo machine_init->init_machine of: Fix null pointer related warnings in base.c file LED: Fix missing semicolon in OF documentation of: fix a few typos in the binding documentation
Diffstat (limited to 'arch/powerpc')
-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
4 files changed, 6 insertions, 10 deletions
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);