summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergio Paracuellos <sergio.paracuellos@gmail.com>2019-06-26 14:43:18 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-07-14 08:01:12 +0200
commit7ce8bd802dc9e2f2d6bfe4d92f9460f84f85b3c2 (patch)
tree1c994ce0367c70658b2523133725f6da5171474b
parentf0f909a19b69abfe4cab7ddc5882f8c192806920 (diff)
downloadlinux-stable-7ce8bd802dc9e2f2d6bfe4d92f9460f84f85b3c2.tar.gz
linux-stable-7ce8bd802dc9e2f2d6bfe4d92f9460f84f85b3c2.tar.bz2
linux-stable-7ce8bd802dc9e2f2d6bfe4d92f9460f84f85b3c2.zip
staging: mt7621-pci: fix PCIE_FTS_NUM_LO macro
commit 0ae0cf509d28d8539b88b5f7f24558f5bfe57cdf upstream. 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>
-rw-r--r--drivers/staging/mt7621-pci/pci-mt7621.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/mt7621-pci/pci-mt7621.c b/drivers/staging/mt7621-pci/pci-mt7621.c
index 03d919a94552..93763d40e3a1 100644
--- a/drivers/staging/mt7621-pci/pci-mt7621.c
+++ b/drivers/staging/mt7621-pci/pci-mt7621.c
@@ -40,7 +40,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_PCIE_CLK_GEN 0x7c