From 74c95b7f29ae970fc99cad21e8ea772eb2557bd1 Mon Sep 17 00:00:00 2001 From: mdodd Date: Wed, 16 Apr 2003 03:16:57 +0000 Subject: - Don't call pci_enable_io() in drivers (unless needed for resume). - Don't test memory/port status and emit an error message; the PCI bus code will do this now. --- sys/dev/hfa/hfa_pci.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'sys/dev/hfa') diff --git a/sys/dev/hfa/hfa_pci.c b/sys/dev/hfa/hfa_pci.c index c5c9bd4..f5f448f 100644 --- a/sys/dev/hfa/hfa_pci.c +++ b/sys/dev/hfa/hfa_pci.c @@ -129,19 +129,6 @@ hfa_pci_attach (dev) error = 0; pci_enable_busmaster(dev); - pci_enable_io(dev, SYS_RES_MEMORY); - - command = pci_read_config(dev, PCIR_COMMAND, 2); - if ((command & PCIM_CMD_BUSMASTEREN) == 0) { - device_printf(dev, "Unable to enable PCI busmastering.\n"); - error = ENXIO; - goto fail; - } - if ((command & PCIM_CMD_MEMEN) == 0) { - device_printf(dev, "Unable to enable PCI memory resources.\n"); - error = ENXIO; - goto fail; - } sc->mem_rid = PCA200E_PCI_MEMBASE; sc->mem_type = SYS_RES_MEMORY; -- cgit v1.1