From: Soren Brinkmann Date: Mon, 20 Oct 2014 20:20:08 +0000 (-0700) Subject: staging: clocking-wizard: Contain macro argument in parenthesis X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4baa70f69d842a04fc247b5ba4d2778306668f54;p=linux-beck.git 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 Signed-off-by: Greg Kroah-Hartman --- 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)