lkml.org 
[lkml]   [2015]   [Jan]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] arch: mips: ath79: gpio: Remove some unused functions
Date
Removes some functions that are not used anywhere:
ath79_gpio_function_disable() ath79_gpio_function_enable()

This was partially found by using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
---
arch/mips/ath79/common.h | 2 --
arch/mips/ath79/gpio.c | 10 ----------
2 files changed, 12 deletions(-)

diff --git a/arch/mips/ath79/common.h b/arch/mips/ath79/common.h
index a312071..9eb841a 100644
--- a/arch/mips/ath79/common.h
+++ b/arch/mips/ath79/common.h
@@ -24,8 +24,6 @@ unsigned long ath79_get_sys_clk_rate(const char *id);

void ath79_ddr_wb_flush(unsigned int reg);

-void ath79_gpio_function_enable(u32 mask);
-void ath79_gpio_function_disable(u32 mask);
void ath79_gpio_function_setup(u32 set, u32 clear);
void ath79_gpio_init(void);

diff --git a/arch/mips/ath79/gpio.c b/arch/mips/ath79/gpio.c
index 8d025b0..d0a5d92 100644
--- a/arch/mips/ath79/gpio.c
+++ b/arch/mips/ath79/gpio.c
@@ -168,16 +168,6 @@ void ath79_gpio_function_setup(u32 set, u32 clear)
spin_unlock_irqrestore(&ath79_gpio_lock, flags);
}

-void ath79_gpio_function_enable(u32 mask)
-{
- ath79_gpio_function_setup(mask, 0);
-}
-
-void ath79_gpio_function_disable(u32 mask)
-{
- ath79_gpio_function_setup(0, mask);
-}
-
void __init ath79_gpio_init(void)
{
int err;
--
1.7.10.4


\
 
 \ /
  Last update: 2015-01-01 20:21    [W:0.018 / U:0.936 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site