diff options
author | Soren Brinkmann <soren.brinkmann@xilinx.com> | 2014-10-20 13:20:08 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-10-29 17:25:53 +0800 |
commit | 4baa70f69d842a04fc247b5ba4d2778306668f54 (patch) | |
tree | 297f8fa8060d0bebec95e6f8f03243c8a9ddf291 /drivers/staging/clocking-wizard | |
parent | 79bffc5344f1fa35e8a0656e7beac593a99a7034 (diff) | |
download | linux-4baa70f69d842a04fc247b5ba4d2778306668f54.tar.gz linux-4baa70f69d842a04fc247b5ba4d2778306668f54.tar.bz2 linux-4baa70f69d842a04fc247b5ba4d2778306668f54.zip |
staging: clocking-wizard: Contain macro argument in parenthesis
A macro doing some arithmetic to calculate a register offset, did not
contain an argument to the macro in parentheses, potentially leading to
unexpected results when using that macro with arithmetic expressions as
argument.
Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/clocking-wizard')
-rw-r--r-- | drivers/staging/clocking-wizard/clk-xlnx-clock-wizard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/clocking-wizard/clk-xlnx-clock-wizard.c b/drivers/staging/clocking-wizard/clk-xlnx-clock-wizard.c index b8d89525bffd..7202d8e889aa 100644 --- a/drivers/staging/clocking-wizard/clk-xlnx-clock-wizard.c +++ b/drivers/staging/clocking-wizard/clk-xlnx-clock-wizard.c @@ -29,7 +29,7 @@ #define WZRD_NUM_OUTPUTS 7 #define WZRD_ACLK_MAX_FREQ 250000000UL -#define WZRD_CLK_CFG_REG(n) (0x200 + 4 * n) +#define WZRD_CLK_CFG_REG(n) (0x200 + 4 * (n)) #define WZRD_CLkOUT0_FRAC_EN BIT(18) #define WZRD_CLkFBOUT_FRAC_EN BIT(26) |