aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/em/if_em.c
diff options
context:
space:
mode:
authorPrafulla Deuskar <pdeuskar@FreeBSD.org>2001-12-06 17:50:21 +0000
committerPrafulla Deuskar <pdeuskar@FreeBSD.org>2001-12-06 17:50:21 +0000
commit8798701fd565a9eda978db0767c6a74aa9694f6e (patch)
tree08b551bd0aa1e3aa2dce0076040092cc6ec8cf95 /sys/dev/em/if_em.c
parentc26c7886d17486a2441c9dd45645fa2ec29cdfe2 (diff)
Notes
Diffstat (limited to 'sys/dev/em/if_em.c')
-rw-r--r--sys/dev/em/if_em.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/sys/dev/em/if_em.c b/sys/dev/em/if_em.c
index 199e9070bddb..6073af51c17c 100644
--- a/sys/dev/em/if_em.c
+++ b/sys/dev/em/if_em.c
@@ -55,7 +55,7 @@ struct adapter *em_adapter_list = NULL;
* Driver version
*********************************************************************/
-char em_driver_version[] = "1.0.6";
+char em_driver_version[] = "1.0.7";
/*********************************************************************
@@ -1142,12 +1142,8 @@ em_identify_hardware(struct adapter * Adapter)
/* Make sure our PCI config space has the necessary stuff set */
Adapter->PciCommandWord = pci_read_config(dev, PCIR_COMMAND, 2);
- if (!(Adapter->PciCommandWord & (PCIM_CMD_BUSMASTEREN | PCIM_CMD_MEMEN))) {
- printf("em%d: Memory Access or Bus Master bits were not set!",
- Adapter->unit);
- Adapter->PciCommandWord |= (PCIM_CMD_BUSMASTEREN | PCIM_CMD_MEMEN);
- pci_write_config(dev, PCIR_COMMAND, Adapter->PciCommandWord, 2);
- }
+ Adapter->PciCommandWord |= (PCIM_CMD_BUSMASTEREN | PCIM_CMD_MEMEN);
+ pci_write_config(dev, PCIR_COMMAND, Adapter->PciCommandWord, 2);
/* Save off the information about this board */
Adapter->VendorId = pci_get_vendor(dev);