Message ID | 1531489266-20410-3-git-send-email-oliver.huebers@web.de |
---|---|
State | New |
Headers | show |
Series | [1/4] staging: mt7621-pci: Include preferred headers | expand |
On Fri, Jul 13, 2018 at 03:41:05PM +0200, Oliver Hübers wrote:
> Add braces around macro argument to avoid precedence problems.
That is not what this patch does :(
diff --git a/drivers/staging/mt7621-pci/pci-mt7621.c b/drivers/staging/mt7621-pci/pci-mt7621.c index d0d3fb9..c118d78 100644 --- a/drivers/staging/mt7621-pci/pci-mt7621.c +++ b/drivers/staging/mt7621-pci/pci-mt7621.c @@ -132,7 +132,8 @@ else \ rt_sysc_m32(val, 0, RALINK_RSTCTRL); \ } while (0) -#define DEASSERT_SYSRST_PCIE(val) \ + +#define DEASSERT_SYSRST_PCIE(val) \ do { \ if (rt_sysc_r32(SYSC_REG_CHIP_REV) == 0x00030101) \ rt_sysc_m32(val, 0, RALINK_RSTCTRL); \