-static void __init kona_timer_init(struct device_node *node)
+static int __init kona_timer_init(struct device_node *node)
{
u32 freq;
struct clk *external_clk;
if (!of_device_is_available(node)) {
pr_info("Kona Timer v1 marked as disabled in device tree\n");
- return;
+ return 0;
I thought we should return -ENODEV here.
Moreover, if this device node is not enabled, kona_timer_init won't even
be invoked. Can we simply get rid of this check here?