MIPS: ralink: Remove unused rt*_wdt_reset functions
authorArnd Bergmann <arnd@arndb.de>
Tue, 17 Jan 2017 15:18:43 +0000 (16:18 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 25 Jan 2017 01:51:10 +0000 (02:51 +0100)
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>
arch/mips/ralink/rt288x.c
arch/mips/ralink/rt305x.c
arch/mips/ralink/rt3883.c

index eeabd5119891307deb00413420fea78aaef0b296..40d3a69c70162352fe48dfb3c2021afa39f5661a 100644 (file)
@@ -40,16 +40,6 @@ static struct rt2880_pmx_group rt2880_pinmux_data_act[] = {
        { 0 }
 };
 
-static void rt288x_wdt_reset(void)
-{
-       u32 t;
-
-       /* enable WDT reset output on pin SRAM_CS_N */
-       t = rt_sysc_r32(SYSC_REG_CLKCFG);
-       t |= CLKCFG_SRAM_CS_N_WDT;
-       rt_sysc_w32(t, SYSC_REG_CLKCFG);
-}
-
 void __init ralink_clk_init(void)
 {
        unsigned long cpu_rate, wmac_rate = 40000000;
index f0b5ac444556172c7fbf3a5f8cabb3fe59955835..01f7cd38d63185fa44a895e27a4003570313ffba 100644 (file)
@@ -89,17 +89,6 @@ static struct rt2880_pmx_group rt5350_pinmux_data[] = {
        { 0 }
 };
 
-static void rt305x_wdt_reset(void)
-{
-       u32 t;
-
-       /* enable WDT reset output on pin SRAM_CS_N */
-       t = rt_sysc_r32(SYSC_REG_SYSTEM_CONFIG);
-       t |= RT305X_SYSCFG_SRAM_CS0_MODE_WDT <<
-               RT305X_SYSCFG_SRAM_CS0_MODE_SHIFT;
-       rt_sysc_w32(t, SYSC_REG_SYSTEM_CONFIG);
-}
-
 static unsigned long rt5350_get_mem_size(void)
 {
        void __iomem *sysc = (void __iomem *) KSEG1ADDR(RT305X_SYSC_BASE);
index f869052e4a0d1b9d37d0463b7e6f8e4989da4c0a..252b64114b4878b68267fd82dc09d14c0bd96339 100644 (file)
@@ -63,16 +63,6 @@ static struct rt2880_pmx_group rt3883_pinmux_data[] = {
        { 0 }
 };
 
-static void rt3883_wdt_reset(void)
-{
-       u32 t;
-
-       /* enable WDT reset output on GPIO 2 */
-       t = rt_sysc_r32(RT3883_SYSC_REG_SYSCFG1);
-       t |= RT3883_SYSCFG1_GPIO2_AS_WDT_OUT;
-       rt_sysc_w32(t, RT3883_SYSC_REG_SYSCFG1);
-}
-
 void __init ralink_clk_init(void)
 {
        unsigned long cpu_rate, sys_rate;