summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_rl_pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pci/if_rl_pci.c')
-rw-r--r--sys/dev/pci/if_rl_pci.c29
1 files changed, 12 insertions, 17 deletions
diff --git a/sys/dev/pci/if_rl_pci.c b/sys/dev/pci/if_rl_pci.c
index 69aa2d6a2c9..fb7180e9094 100644
--- a/sys/dev/pci/if_rl_pci.c
+++ b/sys/dev/pci/if_rl_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_rl_pci.c,v 1.17 2009/06/02 17:27:39 jsg Exp $ */
+/* $OpenBSD: if_rl_pci.c,v 1.18 2009/12/21 18:14:51 naddy Exp $ */
/*
* Copyright (c) 1997, 1998
@@ -114,10 +114,7 @@ const struct pci_matchid rl_pci_devices[] = {
};
int
-rl_pci_match(parent, match, aux)
- struct device *parent;
- void *match;
- void *aux;
+rl_pci_match(struct device *parent, void *match, void *aux)
{
struct pci_attach_args *pa = aux;
@@ -131,16 +128,14 @@ rl_pci_match(parent, match, aux)
}
void
-rl_pci_attach(parent, self, aux)
- struct device *parent, *self;
- void *aux;
+rl_pci_attach(struct device *parent, struct device *self, void *aux)
{
- struct rl_pci_softc *psc = (void *)self;
- struct rl_softc *sc = &psc->psc_softc;
- struct pci_attach_args *pa = aux;
- pci_chipset_tag_t pc = pa->pa_pc;
- pci_intr_handle_t ih;
- const char *intrstr = NULL;
+ struct rl_pci_softc *psc = (void *)self;
+ struct rl_softc *sc = &psc->psc_softc;
+ struct pci_attach_args *pa = aux;
+ pci_chipset_tag_t pc = pa->pa_pc;
+ pci_intr_handle_t ih;
+ const char *intrstr = NULL;
/*
* Map control/status registers.
@@ -191,9 +186,9 @@ rl_pci_attach(parent, self, aux)
int
rl_pci_detach(struct device *self, int flags)
{
- struct rl_pci_softc *psc = (void *)self;
- struct rl_softc *sc = &psc->psc_softc;
- int rv;
+ struct rl_pci_softc *psc = (void *)self;
+ struct rl_softc *sc = &psc->psc_softc;
+ int rv;
rv = rl_detach(sc);
if (rv)