Skip to content

Commit

Permalink
clocksource: nspire: Fix compiler warning
Browse files Browse the repository at this point in the history
CC      drivers/clocksource/zevio-timer.o
drivers/clocksource/zevio-timer.c:215:1: warning: comparison of distinct pointer types lacks a cast [enabled by default]

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
  • Loading branch information
Alexander Shiyan authored and Daniel Lezcano committed Apr 29, 2014
1 parent 82a5619 commit 9afa27c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion drivers/clocksource/zevio-timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,4 +212,9 @@ static int __init zevio_timer_add(struct device_node *node)
return ret;
}

CLOCKSOURCE_OF_DECLARE(zevio_timer, "lsi,zevio-timer", zevio_timer_add);
static void __init zevio_timer_init(struct device_node *node)
{
BUG_ON(zevio_timer_add(node));
}

CLOCKSOURCE_OF_DECLARE(zevio_timer, "lsi,zevio-timer", zevio_timer_init);

0 comments on commit 9afa27c

Please sign in to comment.