Fix PCI driver unload for Marvell PCI controller

Add generic implementation for bus_deactivate_resource method. Without
it bus_release_resource fails with "Failed to release active resource"
message

MFC after:	1 week
This commit is contained in:
gonzo 2018-12-02 21:58:36 +00:00
parent 4fd47b16f4
commit 6fb7a3e7ca

View File

@ -97,6 +97,7 @@ static device_method_t mv_pcib_ctrl_methods[] = {
DEVMETHOD(bus_alloc_resource, mv_pcib_ctrl_alloc_resource),
DEVMETHOD(bus_release_resource, bus_generic_release_resource),
DEVMETHOD(bus_activate_resource, bus_generic_activate_resource),
DEVMETHOD(bus_deactivate_resource, bus_generic_deactivate_resource),
DEVMETHOD(bus_setup_intr, bus_generic_setup_intr),
/* ofw_bus interface */