aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2009-12-30 19:42:27 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2009-12-30 19:42:27 +0000
commitef36004841aa75e99bfe8d59e8df49842fc0b4de (patch)
tree248ab86f0a5b42f042f19d6859ce13d6334352f2 /sys/dev
parentbac2c9636cc4ffb9821931bbbcb2ceacb9db377d (diff)
downloadsrc-ef36004841aa75e99bfe8d59e8df49842fc0b4de.tar.gz
src-ef36004841aa75e99bfe8d59e8df49842fc0b4de.zip
Use a constant instead of a magic number for the flag that enables decoding
of a device ROM.
Notes
Notes: svn path=/head/; revision=201275
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/mpt/mpt_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mpt/mpt_pci.c b/sys/dev/mpt/mpt_pci.c
index c6c59b7c9ccf..1e9dc921c097 100644
--- a/sys/dev/mpt/mpt_pci.c
+++ b/sys/dev/mpt/mpt_pci.c
@@ -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);
/*