summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/pci.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index 72742c680f6..f929ac35135 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pci.c,v 1.57 2008/06/13 08:45:12 deraadt Exp $ */
+/* $OpenBSD: pci.c,v 1.58 2008/06/13 08:45:50 deraadt Exp $ */
/* $NetBSD: pci.c,v 1.31 1997/06/06 23:48:04 thorpej Exp $ */
/*
@@ -334,22 +334,22 @@ pci_probe_device(struct pci_softc *sc, pcitag_t tag,
} else {
if ((dev = config_found_sm(&sc->sc_dev, &pa, pciprint,
pcisubmatch))) {
- pcireg_t reg;
-
- /* skip header type != 0 */
- reg = pci_conf_read(pc, tag, PCI_BHLC_REG);
- if (PCI_HDRTYPE_TYPE(reg) != 0)
- return(0);
- if (pci_get_capability(pc, tag,
- PCI_CAP_PWRMGMT, NULL, NULL) == 0)
- return(0);
- if (!(pd = malloc(sizeof *pd, M_DEVBUF,
- M_NOWAIT)))
- return(0);
- pd->pd_tag = tag;
- pd->pd_dev = dev;
- LIST_INSERT_HEAD(&sc->sc_devs, pd, pd_next);
- }
+ pcireg_t reg;
+
+ /* skip header type != 0 */
+ reg = pci_conf_read(pc, tag, PCI_BHLC_REG);
+ if (PCI_HDRTYPE_TYPE(reg) != 0)
+ return(0);
+ if (pci_get_capability(pc, tag,
+ PCI_CAP_PWRMGMT, NULL, NULL) == 0)
+ return(0);
+ if (!(pd = malloc(sizeof *pd, M_DEVBUF,
+ M_NOWAIT)))
+ return(0);
+ pd->pd_tag = tag;
+ pd->pd_dev = dev;
+ LIST_INSERT_HEAD(&sc->sc_devs, pd, pd_next);
+ }
}
return (ret);