diff options
author | andrew <andrew@FreeBSD.org> | 2016-05-18 15:05:44 +0000 |
---|---|---|
committer | andrew <andrew@FreeBSD.org> | 2016-05-18 15:05:44 +0000 |
commit | 5755bcaba97673b1bb0729757de00966d600513f (patch) | |
tree | 921f2b3e3bffdc9608defc32ff12df35f90be273 /sys/arm64 | |
parent | bfac6710a1cd178cb851b70f97b616048ea6649c (diff) | |
download | FreeBSD-src-5755bcaba97673b1bb0729757de00966d600513f.zip FreeBSD-src-5755bcaba97673b1bb0729757de00966d600513f.tar.gz |
Return the struct intr_pic pointer from intr_pic_register. This will be
needed in later changes where we may not be able to lock the pic list lock
to perform a lookup, e.g. from within interrupt context.
Obtained from: ABT Systems Ltd
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/arm64')
-rw-r--r-- | sys/arm64/arm64/gic_v3_fdt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arm64/arm64/gic_v3_fdt.c b/sys/arm64/arm64/gic_v3_fdt.c index 0ec6436..5466900 100644 --- a/sys/arm64/arm64/gic_v3_fdt.c +++ b/sys/arm64/arm64/gic_v3_fdt.c @@ -139,7 +139,7 @@ gic_v3_fdt_attach(device_t dev) #ifdef INTRNG xref = OF_xref_from_node(ofw_bus_get_node(dev)); - if (intr_pic_register(dev, xref) != 0) { + if (intr_pic_register(dev, xref) == NULL) { device_printf(dev, "could not register PIC\n"); goto error; } @@ -172,7 +172,7 @@ error: /* Failure so free resources */ gic_v3_detach(dev); - return (err); + return (ENXIO); } /* OFW bus interface */ |