Fix registration of MPIC driver
Submitted by: Michal Mazur <mkm@semihalf.com> Obtained from: Semihalf Sponsored by: Netgate Reviewed by: loos Differential revision: https://reviews.freebsd.org/D10717
This commit is contained in:
parent
19cc118b1f
commit
254aea0839
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user