diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-01-17 10:18:43 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-18 07:14:28 -0400 |
commit | b7e968da04d77174477317b1b032be7f62ad856d (patch) | |
tree | d498d13c874cfe083f52bb6f723eda9b80ce200e /arch/mips | |
parent | dd2419e1cec0498e688069ba84e5d90fd5651496 (diff) |
MIPS: ralink: Remove unused rt*_wdt_reset functions
commit 886f9c69fc68f56ddea34d3de51ac1fc2ac8dfbc upstream.
All pointers to these functions were removed, so now they produce
warnings:
arch/mips/ralink/rt305x.c:92:13: error: 'rt305x_wdt_reset' defined but not used [-Werror=unused-function]
This removes the functions. If we need them again, the patch can be
reverted later.
Fixes: f576fb6a0700 ("MIPS: ralink: cleanup the soc specific pinmux data")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: John Crispin <john@phrozen.org>
Cc: Colin Ian King <colin.king@canonical.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/15044/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/ralink/rt288x.c | 10 | ||||
-rw-r--r-- | arch/mips/ralink/rt305x.c | 11 | ||||
-rw-r--r-- | arch/mips/ralink/rt3883.c | 10 |
3 files changed, 0 insertions, 31 deletions
diff --git a/arch/mips/ralink/rt288x.c b/arch/mips/ralink/rt288x.c index 285796e6d75c..2b76e3643869 100644 --- a/arch/mips/ralink/rt288x.c +++ b/arch/mips/ralink/rt288x.c | |||
@@ -40,16 +40,6 @@ static struct rt2880_pmx_group rt2880_pinmux_data_act[] = { | |||
40 | { 0 } | 40 | { 0 } |
41 | }; | 41 | }; |
42 | 42 | ||
43 | static void rt288x_wdt_reset(void) | ||
44 | { | ||
45 | u32 t; | ||
46 | |||
47 | /* enable WDT reset output on pin SRAM_CS_N */ | ||
48 | t = rt_sysc_r32(SYSC_REG_CLKCFG); | ||
49 | t |= CLKCFG_SRAM_CS_N_WDT; | ||
50 | rt_sysc_w32(t, SYSC_REG_CLKCFG); | ||
51 | } | ||
52 | |||
53 | void __init ralink_clk_init(void) | 43 | void __init ralink_clk_init(void) |
54 | { | 44 | { |
55 | unsigned long cpu_rate, wmac_rate = 40000000; | 45 | unsigned long cpu_rate, wmac_rate = 40000000; |
diff --git a/arch/mips/ralink/rt305x.c b/arch/mips/ralink/rt305x.c index c8a28c4bf29e..e778e0b54ffb 100644 --- a/arch/mips/ralink/rt305x.c +++ b/arch/mips/ralink/rt305x.c | |||
@@ -89,17 +89,6 @@ static struct rt2880_pmx_group rt5350_pinmux_data[] = { | |||
89 | { 0 } | 89 | { 0 } |
90 | }; | 90 | }; |
91 | 91 | ||
92 | static void rt305x_wdt_reset(void) | ||
93 | { | ||
94 | u32 t; | ||
95 | |||
96 | /* enable WDT reset output on pin SRAM_CS_N */ | ||
97 | t = rt_sysc_r32(SYSC_REG_SYSTEM_CONFIG); | ||
98 | t |= RT305X_SYSCFG_SRAM_CS0_MODE_WDT << | ||
99 | RT305X_SYSCFG_SRAM_CS0_MODE_SHIFT; | ||
100 | rt_sysc_w32(t, SYSC_REG_SYSTEM_CONFIG); | ||
101 | } | ||
102 | |||
103 | static unsigned long rt5350_get_mem_size(void) | 92 | static unsigned long rt5350_get_mem_size(void) |
104 | { | 93 | { |
105 | void __iomem *sysc = (void __iomem *) KSEG1ADDR(RT305X_SYSC_BASE); | 94 | void __iomem *sysc = (void __iomem *) KSEG1ADDR(RT305X_SYSC_BASE); |
diff --git a/arch/mips/ralink/rt3883.c b/arch/mips/ralink/rt3883.c index 4cef9162bd9b..3e0aa09c6b55 100644 --- a/arch/mips/ralink/rt3883.c +++ b/arch/mips/ralink/rt3883.c | |||
@@ -63,16 +63,6 @@ static struct rt2880_pmx_group rt3883_pinmux_data[] = { | |||
63 | { 0 } | 63 | { 0 } |
64 | }; | 64 | }; |
65 | 65 | ||
66 | static void rt3883_wdt_reset(void) | ||
67 | { | ||
68 | u32 t; | ||
69 | |||
70 | /* enable WDT reset output on GPIO 2 */ | ||
71 | t = rt_sysc_r32(RT3883_SYSC_REG_SYSCFG1); | ||
72 | t |= RT3883_SYSCFG1_GPIO2_AS_WDT_OUT; | ||
73 | rt_sysc_w32(t, RT3883_SYSC_REG_SYSCFG1); | ||
74 | } | ||
75 | |||
76 | void __init ralink_clk_init(void) | 66 | void __init ralink_clk_init(void) |
77 | { | 67 | { |
78 | unsigned long cpu_rate, sys_rate; | 68 | unsigned long cpu_rate, sys_rate; |