# \[PATCH 2/2\] pinctrl: mvebu: remove dead code

- From: Linus Walleij \<hidden\>
- Date: 2012-09-11 17:55:40 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2012/09/8617999
- Thread: https://ratatoskr.run/linux-arm-kernel/2012/08/3906839/t/2.md

```text
On Tue, Sep 11, 2012 at 4:20 PM, Thomas Petazzoni
[ref] 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 <redacted>

Yours,
Linus Walleij
```
