Skip to contentSkip to conversation

ppc: Remove unused function cpu_ppc601_rtc_init()

PATCH Applied Thomas Huth 2 participants 2 messages Jan 17, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppc: Remove unused function cpu_ppc601_rtc_init()

It is completely unused, thus it can be removed without problems.

---
 hw/ppc/ppc.c | 7 -------
 1 file changed, 7 deletions(-)
hw/ppc/ppc.c +0 -7
index 8945869..f9a4b51 100644
@@ -950,13 +950,6 @@ clk_setup_cb cpu_ppc_tb_init (CPUPPCState *env, uint32_t freq)
 }
 
 /* Specific helpers for POWER & PowerPC 601 RTC */
-#if 0
-static clk_setup_cb cpu_ppc601_rtc_init (CPUPPCState *env)
-{
-    return cpu_ppc_tb_init(env, 7812500);
-}
-#endif
-
 void cpu_ppc601_store_rtcu (CPUPPCState *env, uint32_t value)
 {
     _cpu_ppc_store_tbu(env, value);
Signature · 1 line
1.8.3.1
Applied
#1 lore raw
Quoted 3 lines · Thomas Huth

It is completely unused, thus it can be removed without problems.

Applied to ppc-for-2.9, thanks.

Quoted 22 lines
---
 hw/ppc/ppc.c | 7 -------
 1 file changed, 7 deletions(-)
hw/ppc/ppc.c +0 -7
index 8945869..f9a4b51 100644
@@ -950,13 +950,6 @@ clk_setup_cb cpu_ppc_tb_init (CPUPPCState *env, uint32_t freq)
 }
 
 /* Specific helpers for POWER & PowerPC 601 RTC */
-#if 0
-static clk_setup_cb cpu_ppc601_rtc_init (CPUPPCState *env)
-{
-    return cpu_ppc_tb_init(env, 7812500);
-}
-#endif
-
 void cpu_ppc601_store_rtcu (CPUPPCState *env, uint32_t value)
 {
     _cpu_ppc_store_tbu(env, value);
Signature · 4 lines
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson