diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-12-09 22:33:21 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-12-10 21:42:37 -0500 |
commit | 44ef339073f67d4abcc62ae52a5fbc069d7a4d29 (patch) | |
tree | f7d8dab47b9822bbd22a399f24a3e24d10f96621 /arch/powerpc/kernel/pci-common.c | |
parent | 6207e81695c1a64ebed668f26106f3384ad2323a (diff) |
[POWERPC] pci_controller->arch_data really is a struct device_node *
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/pci-common.c')
-rw-r--r-- | arch/powerpc/kernel/pci-common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c index 5a9d4c7bfec5..2f3f30efffed 100644 --- a/arch/powerpc/kernel/pci-common.c +++ b/arch/powerpc/kernel/pci-common.c | |||
@@ -62,7 +62,7 @@ struct pci_controller *pcibios_alloc_controller(struct device_node *dev) | |||
62 | phb->global_number = global_phb_number++; | 62 | phb->global_number = global_phb_number++; |
63 | list_add_tail(&phb->list_node, &hose_list); | 63 | list_add_tail(&phb->list_node, &hose_list); |
64 | spin_unlock(&hose_spinlock); | 64 | spin_unlock(&hose_spinlock); |
65 | phb->arch_data = dev; | 65 | phb->dn = dev; |
66 | phb->is_dynamic = mem_init_done; | 66 | phb->is_dynamic = mem_init_done; |
67 | #ifdef CONFIG_PPC64 | 67 | #ifdef CONFIG_PPC64 |
68 | if (dev) { | 68 | if (dev) { |
@@ -137,7 +137,7 @@ struct pci_controller* pci_find_hose_for_OF_device(struct device_node* node) | |||
137 | while(node) { | 137 | while(node) { |
138 | struct pci_controller *hose, *tmp; | 138 | struct pci_controller *hose, *tmp; |
139 | list_for_each_entry_safe(hose, tmp, &hose_list, list_node) | 139 | list_for_each_entry_safe(hose, tmp, &hose_list, list_node) |
140 | if (hose->arch_data == node) | 140 | if (hose->dn == node) |
141 | return hose; | 141 | return hose; |
142 | node = node->parent; | 142 | node = node->parent; |
143 | } | 143 | } |