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:
Kyle Evans 2017-12-11 22:55:51 +00:00
parent 9ce629675f
commit ce5252c4ba

View File

@ -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);
}