* Benjamin Herrenschmidt | 2011-04-07 13:26:35 [+1000]: >Instead of walking the whole PCI tree to update the of_node's for >PCI busses and devices after the fact, enable the new generic core >code for doing so by providing the proper device nodes for the >PCI host bridges > >Signed-off-by: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx> Ben, please add this to the series or melt into this patch :) >From 1460c529a53a393dd3b41cdcd72ecc6ff1d3646e Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx> Date: Thu, 7 Apr 2011 10:47:51 +0200 Subject: [PATCH] x86: dt: remove unused and/or shadowed variables |arch/x86/kernel/devicetree.c: In function 'pcibios_get_phb_of_node': |arch/x86/kernel/devicetree.c:135:23: warning: unused variable 'child' |arch/x86/kernel/devicetree.c:129:15: warning: unused variable 'bus_min' |arch/x86/kernel/devicetree.c:144:1: warning: control reaches end of non-void function |arch/x86/kernel/devicetree.c:141:10: warning: 'bus' may be used uninitialized in this function Signed-off-by: Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx> --- arch/x86/kernel/devicetree.c | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/x86/kernel/devicetree.c b/arch/x86/kernel/devicetree.c index f6c9d67..3568496 100644 --- a/arch/x86/kernel/devicetree.c +++ b/arch/x86/kernel/devicetree.c @@ -123,16 +123,13 @@ static int __init add_bus_probe(void) module_init(add_bus_probe); #ifdef CONFIG_PCI -struct device_node * pcibios_get_phb_of_node(struct pci_bus *bus) +struct device_node *pcibios_get_phb_of_node(struct pci_bus *bus) { struct device_node *np; - unsigned int bus_min; for_each_node_by_type(np, "pci") { const void *prop; - struct pci_bus *bus; unsigned int bus_min; - struct device_node *child; prop = of_get_property(np, "bus-range", NULL); if (!prop) @@ -141,6 +138,7 @@ struct device_node * pcibios_get_phb_of_node(struct pci_bus *bus) if (bus->number == bus_min) return np; } + return NULL; } static int x86_of_pci_irq_enable(struct pci_dev *dev) -- 1.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html