]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
clocksource/drivers/arc_timer: Use BIT() instead of _BITUL()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 24 May 2019 05:40:10 +0000 (14:40 +0900)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 25 Jun 2019 17:49:18 +0000 (19:49 +0200)
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>
drivers/clocksource/arc_timer.c

index b28970ca4a7a985f7d8aec23c3c7049851b68eae..b1f21bf3b83cdd0691870c4b8a8c73966203f7c5 100644 (file)
@@ -16,6 +16,7 @@
  */
 
 #include <linux/interrupt.h>
+#include <linux/bits.h>
 #include <linux/clk.h>
 #include <linux/clk-provider.h>
 #include <linux/clocksource.h>
@@ -142,7 +143,7 @@ static u64 arc_read_rtc(struct clocksource *cs)
                l = read_aux_reg(AUX_RTC_LOW);
                h = read_aux_reg(AUX_RTC_HIGH);
                status = read_aux_reg(AUX_RTC_CTRL);
-       } while (!(status & _BITUL(31)));
+       } while (!(status & BIT(31)));
 
        return (((u64)h) << 32) | l;
 }