svn commit: r318409 - head/sys/arm/mv
Zbigniew Bodek
zbb at FreeBSD.org
Wed May 17 15:57:16 UTC 2017
Author: zbb
Date: Wed May 17 15:57:14 2017
New Revision: 318409
URL: https://svnweb.freebsd.org/changeset/base/318409
Log:
Fix registration of MPIC driver
Submitted by: Michal Mazur <mkm at semihalf.com>
Obtained from: Semihalf
Sponsored by: Netgate
Reviewed by: loos
Differential revision: https://reviews.freebsd.org/D10717
Modified:
head/sys/arm/mv/mpic.c
Modified: head/sys/arm/mv/mpic.c
==============================================================================
--- head/sys/arm/mv/mpic.c Wed May 17 15:56:09 2017 (r318408)
+++ head/sys/arm/mv/mpic.c Wed May 17 15:57:14 2017 (r318409)
@@ -273,6 +273,9 @@ mv_mpic_attach(device_t dev)
bus_release_resources(dev, mv_mpic_spec, sc->mpic_res);
return (ENXIO);
}
+
+ OF_device_register_xref(OF_xref_from_node(ofw_bus_get_node(dev)), dev);
+
if (intr_pic_register(dev, OF_xref_from_device(dev)) == NULL) {
device_printf(dev, "could not register PIC\n");
bus_release_resources(dev, mv_mpic_spec, sc->mpic_res);
More information about the svn-src-head
mailing list