.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 2016-17 Synopsys, Inc. (www.synopsys.com) |
---|
3 | 4 | * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) |
---|
4 | | - * |
---|
5 | | - * This program is free software; you can redistribute it and/or modify |
---|
6 | | - * it under the terms of the GNU General Public License version 2 as |
---|
7 | | - * published by the Free Software Foundation. |
---|
8 | 5 | */ |
---|
9 | 6 | |
---|
10 | 7 | /* ARC700 has two 32bit independent prog Timers: TIMER0 and TIMER1, Each can be |
---|
.. | .. |
---|
16 | 13 | */ |
---|
17 | 14 | |
---|
18 | 15 | #include <linux/interrupt.h> |
---|
| 16 | +#include <linux/bits.h> |
---|
19 | 17 | #include <linux/clk.h> |
---|
20 | 18 | #include <linux/clk-provider.h> |
---|
21 | 19 | #include <linux/clocksource.h> |
---|
.. | .. |
---|
142 | 140 | l = read_aux_reg(AUX_RTC_LOW); |
---|
143 | 141 | h = read_aux_reg(AUX_RTC_HIGH); |
---|
144 | 142 | status = read_aux_reg(AUX_RTC_CTRL); |
---|
145 | | - } while (!(status & _BITUL(31))); |
---|
| 143 | + } while (!(status & BIT(31))); |
---|
146 | 144 | |
---|
147 | 145 | return (((u64)h) << 32) | l; |
---|
148 | 146 | } |
---|
.. | .. |
---|
336 | 334 | } |
---|
337 | 335 | |
---|
338 | 336 | ret = arc_get_timer_clk(node); |
---|
339 | | - if (ret) { |
---|
340 | | - pr_err("clockevent: missing clk\n"); |
---|
| 337 | + if (ret) |
---|
341 | 338 | return ret; |
---|
342 | | - } |
---|
343 | 339 | |
---|
344 | 340 | /* Needs apriori irq_set_percpu_devid() done in intc map function */ |
---|
345 | 341 | ret = request_percpu_irq(arc_timer_irq, timer_irq_handler, |
---|