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
da081cb51d
commit
b488f7aaa5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=318409
@ -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