svn commit: r201275 - head/sys/dev/mpt
John Baldwin
jhb at FreeBSD.org
Wed Dec 30 19:42:27 UTC 2009
Author: jhb
Date: Wed Dec 30 19:42:27 2009
New Revision: 201275
URL: http://svn.freebsd.org/changeset/base/201275
Log:
Use a constant instead of a magic number for the flag that enables decoding
of a device ROM.
Modified:
head/sys/dev/mpt/mpt_pci.c
Modified: head/sys/dev/mpt/mpt_pci.c
==============================================================================
--- head/sys/dev/mpt/mpt_pci.c Wed Dec 30 19:38:57 2009 (r201274)
+++ head/sys/dev/mpt/mpt_pci.c Wed Dec 30 19:42:27 2009 (r201275)
@@ -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);
/*
More information about the svn-src-all
mailing list