aboutsummaryrefslogtreecommitdiff
path: root/sys/sparc64/fhc/fhc.c
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2008-08-23 16:07:20 +0000
committerMarius Strobl <marius@FreeBSD.org>2008-08-23 16:07:20 +0000
commit47c657e929138a75a3c31c4c6f46fd3a78fe07e3 (patch)
tree3bf19d877fb32bcd70268985cdec3f61a42cefcf /sys/sparc64/fhc/fhc.c
parent1a643b0f02f634c20a007222a263464f86886a5d (diff)
downloadsrc-47c657e929138a75a3c31c4c6f46fd3a78fe07e3.tar.gz
src-47c657e929138a75a3c31c4c6f46fd3a78fe07e3.zip
- Provide and consume module dependency information.
- Fix whitespace bugs. MFC after: 3 days
Notes
Notes: svn path=/head/; revision=182070
Diffstat (limited to 'sys/sparc64/fhc/fhc.c')
-rw-r--r--sys/sparc64/fhc/fhc.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/sparc64/fhc/fhc.c b/sys/sparc64/fhc/fhc.c
index f121b6ea97c4..84edbd44e04f 100644
--- a/sys/sparc64/fhc/fhc.c
+++ b/sys/sparc64/fhc/fhc.c
@@ -120,6 +120,8 @@ static devclass_t fhc_devclass;
DRIVER_MODULE(fhc, central, fhc_driver, fhc_devclass, 0, 0);
DRIVER_MODULE(fhc, nexus, fhc_driver, fhc_devclass, 0, 0);
+MODULE_DEPEND(fhc, central, 1, 1, 1);
+MODULE_VERSION(fhc, 1);
static const struct intr_controller fhc_ic = {
fhc_intr_enable,
@@ -320,7 +322,7 @@ fhc_attach(device_t dev)
if (sc->sc_memres[i] != NULL)
bus_release_resource(dev, SYS_RES_MEMORY,
rman_get_rid(sc->sc_memres[i]), sc->sc_memres[i]);
- return (error);
+ return (error);
}
static int
@@ -399,12 +401,12 @@ fhc_setup_intr(device_t bus, device_t child, struct resource *r, int flags,
/*
* Make sure the vector is fully specified and we registered
* our interrupt controller for it.
- */
+ */
vec = rman_get_start(r);
if (INTIGN(vec) != sc->sc_ign || intr_vectors[vec].iv_ic != &fhc_ic) {
device_printf(bus, "invalid interrupt vector 0x%lx\n", vec);
- return (EINVAL);
- }
+ return (EINVAL);
+ }
return (bus_generic_setup_intr(bus, child, r, flags, filt, func,
arg, cookiep));
}