Use a constant instead of a magic number for the flag that enables decoding

of a device ROM.
This commit is contained in:
John Baldwin 2009-12-30 19:42:27 +00:00
parent bac2c9636c
commit ef36004841

View file

@ -485,7 +485,7 @@ mpt_pci_attach(device_t dev)
* Make sure we've disabled the ROM.
*/
data = pci_read_config(dev, PCIR_BIOS, 4);
data &= ~1;
data &= ~PCIM_BIOS_ENABLE;
pci_write_config(dev, PCIR_BIOS, data, 4);
/*