diff mbox

[2/2] pinctrl: mvebu: remove dead code

Message ID 1347373204-17883-3-git-send-email-thomas.petazzoni@free-electrons.com (mailing list archive)
State New, archived
Headers show

Commit Message

Thomas Petazzoni Sept. 11, 2012, 2:20 p.m. UTC
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 drivers/pinctrl/pinctrl-mvebu.c |   13 -------------
 1 file changed, 13 deletions(-)

Comments

Linus Walleij Sept. 11, 2012, 5:55 p.m. UTC | #1
On Tue, Sep 11, 2012 at 4:20 PM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:

> -#if 0
> -struct mvebu_pinctrl_function *mvebu_pinctrl_find_function_by_name(
> -       struct mvebu_pinctrl *pctl, const char *name)
> -{
> -       unsigned n;
> -       for (n = 0; n < pctl->num_functions; n++) {
> -               if (strcmp(name, pctl->functions[n].name) == 0)
> -                       return &pctl->functions[n];
> -       }
> -       return NULL;
> -}
> -#endif

Grrr how could I miss this...?

Acked-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij
diff mbox

Patch

diff --git a/drivers/pinctrl/pinctrl-mvebu.c b/drivers/pinctrl/pinctrl-mvebu.c
index ed1fc3b..720e547 100644
--- a/drivers/pinctrl/pinctrl-mvebu.c
+++ b/drivers/pinctrl/pinctrl-mvebu.c
@@ -128,19 +128,6 @@  static struct mvebu_mpp_ctrl_setting *mvebu_pinctrl_find_gpio_setting(
 	return NULL;
 }
 
-#if 0
-struct mvebu_pinctrl_function *mvebu_pinctrl_find_function_by_name(
-	struct mvebu_pinctrl *pctl, const char *name)
-{
-	unsigned n;
-	for (n = 0; n < pctl->num_functions; n++) {
-		if (strcmp(name, pctl->functions[n].name) == 0)
-			return &pctl->functions[n];
-	}
-	return NULL;
-}
-#endif
-
 /*
  * Common mpp pin configuration registers on MVEBU are
  * registers of eight 4-bit values for each mpp setting.