syscon3: remove redundant and unused code
PATCH 1/1 syscon3: remove redundant and unused code
Remove board_early_init_r() - not used for this board.
Remove ft_board_setup() - redundant as now handled by weak default routine,
see commit "ppc4xx: Add weak default ft_board_setup() routine"
Signed-off-by Wolfgang Denk <[email protected]>
--- board/syscon3/syscon3.c | 35 ----------------------------------- 1 files changed, 0 insertions(+), 35 deletions(-)
board/syscon3/syscon3.c +0 -35
@@ -132,7 +132,6 @@ int misc_init_r (void)*/ void local_bus_init (void ) { -volatile ccsr_lbc_t *lbc = (void *)(CFG_MPC85xx_LBC_ADDR);volatile ccsr_local_ecm_t *ecm = (void *)(CFG_MPC85xx_ECM_ADDR);
@@ -160,7 +159,6 @@ static struct pci_config_table pci_mpc85xxads_config_table[] = { };#endif - static struct pci_controller hose = {#ifndef CONFIG_PCI_PNP config_table:pci_mpc85xxads_config_table,
@@ -176,36 +174,3 @@ void pci_init_board (void)pci_mpc85xx_init (&hose);#endif /* CONFIG_PCI */ } - -#ifdef CONFIG_BOARD_EARLY_INIT_R -int board_early_init_r (void ) -{ -#ifdef CONFIG_PS2MULT -ps2mult_early_init (); -#endif /* CONFIG_PS2MULT */ -return (0 ); -} -#endif /* CONFIG_BOARD_EARLY_INIT_R */ - -#if defined(CONFIG_OF_LIBFDT ) && defined(CONFIG_OF_BOARD_SETUP ) -void -ft_board_setup (void *blob,bd_t *bd) -{ -u32 val[4 ]; -int rc; - -ft_cpu_setup (blob, bd); - -/* Fixup NOR mapping */ - val[0 ] =0 ;/* chip select number */ - val[1 ] =0 ;/* always 0 */ - val[2 ] = gd->bd->bi_flashstart; - val[3 ] = gd->bd->bi_flashsize; - - rc =fdt_find_and_setprop (blob,"/localbus" ,"ranges" , - val,sizeof (val),1 ); -if (rc) -printf ("Unable to update property NOR mapping, err=%s\n" , -fdt_strerror (rc)); -} -#endif /* defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP) */
Signature · 1 line
1.5.4.2