summaryrefslogtreecommitdiffstats
path: root/sys/dev/mpt
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2009-12-30 19:42:27 +0000
committerjhb <jhb@FreeBSD.org>2009-12-30 19:42:27 +0000
commit2bebf345f5dfc83efe15fc75fd989883f2f88db5 (patch)
tree248ab86f0a5b42f042f19d6859ce13d6334352f2 /sys/dev/mpt
parentab18b95f4ca8b361598ace60f0aa89148c1ce9bc (diff)
downloadFreeBSD-src-2bebf345f5dfc83efe15fc75fd989883f2f88db5.zip
FreeBSD-src-2bebf345f5dfc83efe15fc75fd989883f2f88db5.tar.gz
Use a constant instead of a magic number for the flag that enables decoding
of a device ROM.
Diffstat (limited to 'sys/dev/mpt')
-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 c6c59b7..1e9dc92 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);
/*
OpenPOWER on IntegriCloud