Skip to content

Commit

Permalink
[POWERPC] Make find_and_init_pbs() a void function
Browse files Browse the repository at this point in the history
It always returned 0 and noone checked.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Stephen Rothwell authored and Paul Mackerras committed Mar 9, 2007
1 parent 0a7c7ef commit 36241ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions arch/powerpc/kernel/rtas_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ int __devinit rtas_setup_phb(struct pci_controller *phb)
return 0;
}

unsigned long __init find_and_init_phbs(void)
void __init find_and_init_phbs(void)
{
struct device_node *node;
struct pci_controller *phb;
Expand Down Expand Up @@ -319,8 +319,6 @@ unsigned long __init find_and_init_phbs(void)
if (prop)
pci_assign_all_buses = *prop;
}

return 0;
}

/* RPA-specific bits for removing PHBs */
Expand Down
2 changes: 1 addition & 1 deletion include/asm-powerpc/ppc-pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ extern void pci_setup_phb_io_dynamic(struct pci_controller *hose, int primary);
extern struct list_head hose_list;
extern int global_phb_number;

extern unsigned long find_and_init_phbs(void);
extern void find_and_init_phbs(void);

extern struct pci_dev *ppc64_isabridge_dev; /* may be NULL if no ISA bus */

Expand Down

0 comments on commit 36241ce

Please sign in to comment.