[POWERPC] Merge ppc32 and ppc64 pcibios_alloc_controller() prototypes
Make the ppc32 pcibios_alloc_controller take a device node to match the ppc64 prototypes and have it set arch_data. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
@@ -610,7 +610,7 @@ pcibios_enable_resources(struct pci_dev *dev, int mask)
|
||||
static int next_controller_index;
|
||||
|
||||
struct pci_controller * __init
|
||||
pcibios_alloc_controller(void)
|
||||
pcibios_alloc_controller(struct device_node *dev)
|
||||
{
|
||||
struct pci_controller *hose;
|
||||
|
||||
@@ -621,6 +621,7 @@ pcibios_alloc_controller(void)
|
||||
hose_tail = &hose->next;
|
||||
|
||||
hose->global_number = next_controller_index++;
|
||||
hose->arch_data = dev;
|
||||
|
||||
return hose;
|
||||
}
|
||||
|
Reference in New Issue
Block a user