diff options
Diffstat (limited to 'sys/dev/sk')
-rw-r--r-- | sys/dev/sk/if_sk.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/sys/dev/sk/if_sk.c b/sys/dev/sk/if_sk.c index 8b15c5cd2b14..1093f34d9436 100644 --- a/sys/dev/sk/if_sk.c +++ b/sys/dev/sk/if_sk.c @@ -1201,7 +1201,6 @@ static int sk_attach(dev) device_t dev; { - u_int32_t command; struct sk_softc *sc; int unit, error = 0, rid, *port; @@ -1238,23 +1237,6 @@ sk_attach(dev) * Map control/status registers. */ pci_enable_busmaster(dev); - pci_enable_io(dev, SYS_RES_IOPORT); - pci_enable_io(dev, SYS_RES_MEMORY); - command = pci_read_config(dev, PCIR_COMMAND, 4); - -#ifdef SK_USEIOSPACE - if (!(command & PCIM_CMD_PORTEN)) { - printf("skc%d: failed to enable I/O ports!\n", unit); - error = ENXIO; - goto fail; - } -#else - if (!(command & PCIM_CMD_MEMEN)) { - printf("skc%d: failed to enable memory mapping!\n", unit); - error = ENXIO; - goto fail; - } -#endif rid = SK_RID; sc->sk_res = bus_alloc_resource(dev, SK_RES, &rid, |