diff options
author | Alexander Shiyan <shc_work@mail.ru> | 2014-04-26 09:32:16 +0400 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2014-04-29 15:06:43 +0200 |
commit | 9afa27ce9414c92e271b0d7eec937bd9f5565da5 (patch) | |
tree | f270a018adb884efd35f8323de37bbf18d601b73 | |
parent | 82a5619410d4c4df65c04272db198eca5a867c18 (diff) | |
download | linux-9afa27ce9414c92e271b0d7eec937bd9f5565da5.tar.gz linux-9afa27ce9414c92e271b0d7eec937bd9f5565da5.tar.bz2 linux-9afa27ce9414c92e271b0d7eec937bd9f5565da5.zip |
clocksource: nspire: Fix compiler warning
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>
-rw-r--r-- | drivers/clocksource/zevio-timer.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/clocksource/zevio-timer.c b/drivers/clocksource/zevio-timer.c index ca81809d159d..7ce442148c3f 100644 --- a/drivers/clocksource/zevio-timer.c +++ b/drivers/clocksource/zevio-timer.c @@ -212,4 +212,9 @@ error_free: 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); |