Patchwork [U-Boot] mpc512x: remove dead code

login
register
mail settings
Submitter Anatolij Gustschin
Date March 30, 2013, 7:26 p.m.
Message ID <1364671596-16584-1-git-send-email-agust@denx.de>
Download mbox | patch
Permalink /patch/232550/
State Accepted
Delegated to: Wolfgang Denk
Headers show

Comments

Anatolij Gustschin - March 30, 2013, 7:26 p.m.
The prt_mpc512x_clks() function isn't referenced
anywhere and its prototype is wrong. Remove it.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
---
 arch/powerpc/cpu/mpc512x/speed.c |    6 ------
 include/common.h                 |    3 ---
 2 files changed, 0 insertions(+), 9 deletions(-)
Wolfgang Denk - May 2, 2013, 6:43 p.m.
Dear Anatolij Gustschin,

In message <1364671596-16584-1-git-send-email-agust@denx.de> you wrote:
> The prt_mpc512x_clks() function isn't referenced
> anywhere and its prototype is wrong. Remove it.
> 
> Signed-off-by: Anatolij Gustschin <agust@denx.de>
> ---
>  arch/powerpc/cpu/mpc512x/speed.c |    6 ------
>  include/common.h                 |    3 ---
>  2 files changed, 0 insertions(+), 9 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Patch

diff --git a/arch/powerpc/cpu/mpc512x/speed.c b/arch/powerpc/cpu/mpc512x/speed.c
index 9a8f315..6761877 100644
--- a/arch/powerpc/cpu/mpc512x/speed.c
+++ b/arch/powerpc/cpu/mpc512x/speed.c
@@ -151,9 +151,3 @@  U_BOOT_CMD(clocks, 1, 0, do_clocks,
 	"print clock configuration",
 	"    clocks"
 );
-
-int prt_mpc512x_clks (void)
-{
-	do_clocks (NULL, 0, 0, NULL);
-	return (0);
-}
diff --git a/include/common.h b/include/common.h
index 69eeea4..96e3504 100644
--- a/include/common.h
+++ b/include/common.h
@@ -631,9 +631,6 @@  int	prt_8260_clks (void);
 #elif defined(CONFIG_MPC5xxx)
 int	prt_mpc5xxx_clks (void);
 #endif
-#if defined(CONFIG_MPC512X)
-int	prt_mpc512xxx_clks (void);
-#endif
 #if defined(CONFIG_MPC8220)
 int	prt_mpc8220_clks (void);
 #endif