diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2005-08-09 04:10:14 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2005-08-09 04:10:14 +0000 |
commit | 8acbfa59711c28388979dd47c85ac8fda2aef774 (patch) | |
tree | 0a8f13a9f8aea3ce00fc1186bafa554451900d2b /sys/dev/pci/if_ne_pci.c | |
parent | ea9360cd901a644039d864bec59eb393c782c450 (diff) |
do not set PCI_COMMAND_MASTER_ENABLE explicitly as it's already set in pcisubmatch(); kettenis@ testing; brad@ ok
Diffstat (limited to 'sys/dev/pci/if_ne_pci.c')
-rw-r--r-- | sys/dev/pci/if_ne_pci.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/dev/pci/if_ne_pci.c b/sys/dev/pci/if_ne_pci.c index 703000bad9a..878b50bce7a 100644 --- a/sys/dev/pci/if_ne_pci.c +++ b/sys/dev/pci/if_ne_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ne_pci.c,v 1.11 2002/03/14 01:26:58 millert Exp $ */ +/* $OpenBSD: if_ne_pci.c,v 1.12 2005/08/09 04:10:12 mickey Exp $ */ /* $NetBSD: if_ne_pci.c,v 1.8 1998/07/05 00:51:24 jonathan Exp $ */ /*- @@ -203,7 +203,6 @@ ne_pci_attach(parent, self, aux) const char *intrstr; const struct ne_pci_product *npp; pci_intr_handle_t ih; - pcireg_t csr; npp = ne_pci_lookup(pa); if (npp == NULL) { @@ -244,12 +243,6 @@ ne_pci_attach(parent, self, aux) nsc->sc_asict = asict; nsc->sc_asich = asich; - /* Enable the card. */ - csr = pci_conf_read(pc, pa->pa_tag, - PCI_COMMAND_STATUS_REG); - pci_conf_write(pc, pa->pa_tag, PCI_COMMAND_STATUS_REG, - csr | PCI_COMMAND_MASTER_ENABLE); - /* This interface is always enabled. */ dsc->sc_enabled = 1; |