mirror of
https://github.com/opnsense/src.git
synced 2026-02-19 02:30:08 -05:00
dev/hwpmc: Fix the dmc620 MD4 macro
Add braces to the dmc620 MD4 macro to fix the GCC build. Reviewed by: brooks, imp, jhb Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D45266 (cherry picked from commit 131c1718c6331e87f139b42b4ad0e57b6a71ea44)
This commit is contained in:
parent
0496539fe3
commit
dfd26e29dd
1 changed files with 1 additions and 1 deletions
|
|
@ -68,7 +68,7 @@ struct pmu_dmc620_softc {
|
|||
|
||||
#define RD4(sc, r) bus_read_4((sc)->sc_res[0], (r))
|
||||
#define WR4(sc, r, v) bus_write_4((sc)->sc_res[0], (r), (v))
|
||||
#define MD4(sc, r, c, s) WR4((sc), (r), RD4((sc), (r)) & ~(c) | (s))
|
||||
#define MD4(sc, r, c, s) WR4((sc), (r), (RD4((sc), (r)) & ~(c)) | (s))
|
||||
|
||||
#define CD2MD4(sc, u, r, c, s) MD4((sc), DMC620_CLKDIV2_REG((u), (r)), (c), (s))
|
||||
#define CMD4(sc, u, r, c, s) MD4((sc), DMC620_CLK_REG((u), (r)), (c), (s))
|
||||
|
|
|
|||
Loading…
Reference in a new issue