Make ppc440spe_init_pcie() static
PATCH 1/1 Make ppc440spe_init_pcie() static
ppc440spe_init_pcie() is only called from the file where it's defined (except for dead code, which we remove in this patch).
Signed-off-by Roland Dreier <[email protected]>
---
Just a minor cleanup since I was looking at the code anyway. Please queue for 2.6.20 too.
arch/ppc/platforms/4xx/yucca.c | 5 ----- arch/ppc/syslib/ppc440spe_pcie.c | 2 +- arch/ppc/syslib/ppc440spe_pcie.h | 1 - 3 files changed, 1 insertions(+), 7 deletions(-)
arch/ppc/platforms/4xx/yucca.c +0 -5
@@ -239,11 +239,6 @@ yucca_setup_hoses(void)char name[20 ];int i; -if (0 &&ppc440spe_init_pcie ()) { -printk (KERN_WARNING "PPC440SPe PCI Express initialization failed\n" ); -return ; - } -for (i =0 ; i <=2 ; ++i) {if (!yucca_pcie_card_present (i))continue ;
arch/ppc/syslib/ppc440spe_pcie.c +1 -1
@@ -159,7 +159,7 @@ static void check_error(void)/* * Initialize PCI Express core as described in User Manual section 27.12.1 */ -int ppc440spe_init_pcie (void ) +static int ppc440spe_init_pcie (void ) {int i;
arch/ppc/syslib/ppc440spe_pcie.h +0 -1
@@ -142,7 +142,6 @@ #define PECFG_PIM0LAH 0x344#define PECFG_POM0LAL 0x380#define PECFG_POM0LAH 0x384 -int ppc440spe_init_pcie (void );int ppc440spe_init_pcie_rootport (int port);void ppc440spe_setup_pcie (struct pci_controller *hose,int port);
Signature · 1 line
1.4.3.2