summaryrefslogtreecommitdiff
path: root/sys/dev/pci/nofn.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2005-08-09 04:10:14 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2005-08-09 04:10:14 +0000
commit8acbfa59711c28388979dd47c85ac8fda2aef774 (patch)
tree0a8f13a9f8aea3ce00fc1186bafa554451900d2b /sys/dev/pci/nofn.c
parentea9360cd901a644039d864bec59eb393c782c450 (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/nofn.c')
-rw-r--r--sys/dev/pci/nofn.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/dev/pci/nofn.c b/sys/dev/pci/nofn.c
index 56fe0c8d778..9d26b0a7ef2 100644
--- a/sys/dev/pci/nofn.c
+++ b/sys/dev/pci/nofn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nofn.c,v 1.13 2004/05/07 14:42:26 millert Exp $ */
+/* $OpenBSD: nofn.c,v 1.14 2005/08/09 04:10:13 mickey Exp $ */
/*
* Copyright (c) 2002 Jason L. Wright (jason@thought.net)
@@ -116,10 +116,6 @@ nofn_attach(parent, self, aux)
sc->sc_dmat = pa->pa_dmat;
cmd = pci_conf_read(pc, pa->pa_tag, PCI_COMMAND_STATUS_REG);
- cmd |= PCI_COMMAND_MEM_ENABLE | PCI_COMMAND_MASTER_ENABLE;
- pci_conf_write(pc, pa->pa_tag, PCI_COMMAND_STATUS_REG, cmd);
- cmd = pci_conf_read(pc, pa->pa_tag, PCI_COMMAND_STATUS_REG);
-
if (!(cmd & PCI_COMMAND_MEM_ENABLE)) {
printf(": failed to enable memory mapping\n");
goto fail;