[PATCH] ARM: nomadik: fix clocksource warning

Linus Walleij linus.ml.walleij at gmail.com
Sun Jun 2 15:23:51 EDT 2013


2013/5/31 Arnd Bergmann <arnd at arndb.de>:

> 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 at 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 <linus.walleij at linaro.org>

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list