summaryrefslogtreecommitdiff
path: root/sys/dev/pci/gtp.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/gtp.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/gtp.c')
-rw-r--r--sys/dev/pci/gtp.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/dev/pci/gtp.c b/sys/dev/pci/gtp.c
index c572e1a6e1e..f09ef0d269c 100644
--- a/sys/dev/pci/gtp.c
+++ b/sys/dev/pci/gtp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gtp.c,v 1.1 2002/06/03 16:13:21 mickey Exp $ */
+/* $OpenBSD: gtp.c,v 1.2 2005/08/09 04:10:11 mickey Exp $ */
/*
* Copyright (c) 2002 Vladimir Popov <jumbo@narod.ru>
@@ -135,7 +135,6 @@ gtp_attach(struct device *parent, struct device *self, void *aux)
struct pci_attach_args *pa = aux;
struct cfdata *cf = sc->sc_dev.dv_cfdata;
pci_chipset_tag_t pc = pa->pa_pc;
- pcireg_t csr;
if (pci_mapreg_map(pa, 0x10, PCI_MAPREG_TYPE_IO, 0, &sc->tea.iot,
&sc->tea.ioh, NULL, NULL, 0)) {
@@ -143,11 +142,6 @@ gtp_attach(struct device *parent, struct device *self, void *aux)
return;
}
- /* 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);
-
sc->vol = 0;
sc->mute = 0;
sc->freq = MIN_FM_FREQ;