]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
clocksource/drivers/npcm: Fix misuse of GENMASK macro
authorJoe Perches <joe@perches.com>
Wed, 10 Jul 2019 05:04:15 +0000 (22:04 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 10 Jul 2019 09:05:26 +0000 (11:05 +0200)
Arguments are supposed to be ordered high then low.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/d6a9d49c9837d38816b71d783f5aed7235e8ca94.1562734889.git.joe@perches.com
drivers/clocksource/timer-npcm7xx.c

index 7a9bb5532d99213b4c1e0bcdeddcb291a8d6fbf0..8a30da7f083b09ad2d5d15a338853a0a8bc23662 100644 (file)
@@ -32,7 +32,7 @@
 #define NPCM7XX_Tx_INTEN               BIT(29)
 #define NPCM7XX_Tx_COUNTEN             BIT(30)
 #define NPCM7XX_Tx_ONESHOT             0x0
-#define NPCM7XX_Tx_OPER                        GENMASK(3, 27)
+#define NPCM7XX_Tx_OPER                        GENMASK(27, 3)
 #define NPCM7XX_Tx_MIN_PRESCALE                0x1
 #define NPCM7XX_Tx_TDR_MASK_BITS       24
 #define NPCM7XX_Tx_MAX_CNT             0xFFFFFF