From 8acbfa59711c28388979dd47c85ac8fda2aef774 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Tue, 9 Aug 2005 04:10:14 +0000 Subject: do not set PCI_COMMAND_MASTER_ENABLE explicitly as it's already set in pcisubmatch(); kettenis@ testing; brad@ ok --- sys/dev/pci/if_ne_pci.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'sys/dev/pci/if_ne_pci.c') 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; -- cgit v1.2.3