Skip to contentSkip to conversation

clocksource: nspire: Fix compiler warning

PATCH RESEND New Alexander Shiyan 1 participant 1 message Apr 26, 2014 Clocksource, clockevent drivers

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 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]

---
 drivers/clocksource/zevio-timer.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/clocksource/zevio-timer.c +6 -1
index ca81809..7ce4421 100644
@@ -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);
Signature · 1 line
1.8.3.2