diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-05-24 01:40:10 -0400 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2019-06-25 13:49:18 -0400 |
commit | 93665ab0626ca213074355f7ddab7856898eb73b (patch) | |
tree | 8497dc3834b7a60a2fceb6cc690c0b94b61df9da | |
parent | 8925ed4b10345915d576ba2fc6b319e6eae3d8b8 (diff) |
clocksource/drivers/arc_timer: Use BIT() instead of _BITUL()
This is in-kernel C code, so there is no reason to use _BITUL().
Replace it with equivalent BIT().
I added #include <linux/bits.h> explicitly although it has been included
by other headers eventually.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
-rw-r--r-- | drivers/clocksource/arc_timer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/clocksource/arc_timer.c b/drivers/clocksource/arc_timer.c index b28970ca4a7a..b1f21bf3b83c 100644 --- a/drivers/clocksource/arc_timer.c +++ b/drivers/clocksource/arc_timer.c | |||
@@ -16,6 +16,7 @@ | |||
16 | */ | 16 | */ |
17 | 17 | ||
18 | #include <linux/interrupt.h> | 18 | #include <linux/interrupt.h> |
19 | #include <linux/bits.h> | ||
19 | #include <linux/clk.h> | 20 | #include <linux/clk.h> |
20 | #include <linux/clk-provider.h> | 21 | #include <linux/clk-provider.h> |
21 | #include <linux/clocksource.h> | 22 | #include <linux/clocksource.h> |
@@ -142,7 +143,7 @@ static u64 arc_read_rtc(struct clocksource *cs) | |||
142 | l = read_aux_reg(AUX_RTC_LOW); | 143 | l = read_aux_reg(AUX_RTC_LOW); |
143 | h = read_aux_reg(AUX_RTC_HIGH); | 144 | h = read_aux_reg(AUX_RTC_HIGH); |
144 | status = read_aux_reg(AUX_RTC_CTRL); | 145 | status = read_aux_reg(AUX_RTC_CTRL); |
145 | } while (!(status & _BITUL(31))); | 146 | } while (!(status & BIT(31))); |
146 | 147 | ||
147 | return (((u64)h) << 32) | l; | 148 | return (((u64)h) << 32) | l; |
148 | } | 149 | } |