]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
staging: mt7621-pci: fix PCIE_FTS_NUM_LO macro
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Wed, 26 Jun 2019 12:43:18 +0000 (14:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Jul 2019 06:58:21 +0000 (08:58 +0200)
Add missing parenthesis to PCIE_FTS_NUM_LO macro to do the
same it was being done in original code.

Fixes: a4b2eb912bb1 ("staging: mt7621-pci: rewrite RC FTS configuration")
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-pci/pci-mt7621.c

index a981f4f0ed031a7d81ffe4bb92ed8d0e30e85bf2..89fa813142abe219a502b87203f0291c5ffddcac 100644 (file)
@@ -42,7 +42,7 @@
 /* MediaTek specific configuration registers */
 #define PCIE_FTS_NUM                   0x70c
 #define PCIE_FTS_NUM_MASK              GENMASK(15, 8)
-#define PCIE_FTS_NUM_L0(x)             ((x) & 0xff << 8)
+#define PCIE_FTS_NUM_L0(x)             (((x) & 0xff) << 8)
 
 /* rt_sysc_membase relative registers */
 #define RALINK_CLKCFG1                 0x30