Correct a typo in syscon driver 'modify' logic
Not previously caught because the current consumer (not yet in tree) doesn't use the 'modify' bits (yet). Reported by: rpokala
This commit is contained in:
parent
9ce629675f
commit
ce5252c4ba
@ -104,7 +104,7 @@ syscon_modify_4(device_t dev, device_t consumer, bus_size_t offset,
|
||||
SYSCON_LOCK(sc);
|
||||
val = bus_read_4(sc->mem_res, offset);
|
||||
val &= ~clear_bits;
|
||||
val |= ~set_bits;
|
||||
val |= set_bits;
|
||||
bus_write_4(sc->mem_res, offset, val);
|
||||
SYSCON_UNLOCK(sc);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user