# \[PATCH\] ARM: nomadik: fix clocksource warning

- From: Linus Walleij \<hidden\>
- Date: 2013-06-02 19:23:51 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2013/06/8646223
- Thread: https://ratatoskr.run/linux-arm-kernel/2013/05/8646148/t.md

```text
2013/5/31 Arnd Bergmann [ref]:

> The clocksource API has changed slightly, which causes a harmless
> warning:
>
> /git/arm-soc/drivers/clocksource/nomadik-mtu.c:259:28: warning: 'nmdk_timer_match' defined but not used [-Wunused-variable]
>  static struct of_device_id nmdk_timer_match[] __initconst = {
>                             ^
>
> Fortunately, the same API change also lets us simplify the code
> while removing the warning.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

Ah so it matches the string directly in CLOCKSOURCE_OF_DECLARE()
OK makes perfect sense, sometimes it's hard to keep up with
the evolutional pace here...
Reviewed-by: Linus Walleij <redacted>

Yours,
Linus Walleij
```
