]> err.no Git - linux-2.6/commitdiff
[POWERPC] Make find_and_init_pbs() a void function
authorStephen Rothwell <sfr@canb.auug.org.au>
Sun, 4 Mar 2007 06:07:38 +0000 (17:07 +1100)
committerPaul Mackerras <paulus@samba.org>
Fri, 9 Mar 2007 04:03:26 +0000 (15:03 +1100)
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>
arch/powerpc/kernel/rtas_pci.c
include/asm-powerpc/ppc-pci.h

index ace9f4c86e670f7e8a66cec053b553e27317b506..1616a44ac60828c1ba13a2e9c78c702a71e0e62f 100644 (file)
@@ -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;
@@ -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 */
index 4a053404bf6b1766a6b90773075eca5d61056655..f186720d0739abe437e13d3824a1f7552af29cff 100644 (file)
@@ -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 */