diff options
author | 2003-08-19 11:57:07 +0000 | |
---|---|---|
committer | 2003-08-19 11:57:07 +0000 | |
commit | c88ec652a0e637d69c5d304f792ae9dd087de35a (patch) | |
tree | ad6b4af199f7a705ac1ada68553ea9c54da8c1ca | |
parent | simple protos and ansi (diff) | |
download | wireguard-openbsd-c88ec652a0e637d69c5d304f792ae9dd087de35a.tar.xz wireguard-openbsd-c88ec652a0e637d69c5d304f792ae9dd087de35a.zip |
cleanup; from form@
-rw-r--r-- | sys/dev/pci/if_mtd_pci.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/pci/if_mtd_pci.c b/sys/dev/pci/if_mtd_pci.c index 447cc4ae30c..03f3eca9cb8 100644 --- a/sys/dev/pci/if_mtd_pci.c +++ b/sys/dev/pci/if_mtd_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_mtd_pci.c,v 1.3 2003/08/19 04:52:26 mickey Exp $ */ +/* $OpenBSD: if_mtd_pci.c,v 1.4 2003/08/19 11:57:07 mickey Exp $ */ /* * Copyright (c) 2003 Oleg Safiullin @@ -78,7 +78,6 @@ mtd_pci_attach(struct device *parent, struct device *self, void *aux) pci_intr_handle_t ih; const char *intrstr = NULL; bus_size_t iosize; - u_int32_t command; command = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG); @@ -88,13 +87,13 @@ mtd_pci_attach(struct device *parent, struct device *self, void *aux) printf(": can't map mem space\n"); return; } -#else /* !MTD_USE_MEMIO */ +#else /* MTD_USE_IO */ if (pci_mapreg_map(pa, MTD_PCI_LOIO, PCI_MAPREG_TYPE_IO, 0, &sc->bus_tag, &sc->bus_handle, NULL, &iosize, 0)) { printf(": can't map io space\n"); return; } -#endif /* MTD_USE_MEMIO */ +#endif /* MTD_USE_IO */ /* * Allocate our interrupt. |