hda: Remove doubled and early put of gPCIx86Module.
This is already properly done in uninit_driver. Putting the module in device instead of driver uninit meant that on a device reopen the gPCIx86Module would always be gone and therefore MSIs could not be used anymore even if they previously were. Change-Id: Ib3bddefbe6bcb02fa1c97f3c843cecaf31c80e3e Reviewed-on: https://review.haiku-os.org/c/haiku/+/3061 Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
parent
4ba91f3460
commit
8d917e956a
@ -1267,11 +1267,6 @@ hda_hw_uninit(hda_controller* controller)
|
||||
remove_io_interrupt_handler(controller->irq,
|
||||
(interrupt_handler)hda_interrupt_handler, controller);
|
||||
|
||||
if (gPCIx86Module != NULL) {
|
||||
put_module(B_PCI_X86_MODULE_NAME);
|
||||
gPCIx86Module = NULL;
|
||||
}
|
||||
|
||||
// Delete corb/rirb area
|
||||
if (controller->corb_rirb_pos_area >= 0) {
|
||||
delete_area(controller->corb_rirb_pos_area);
|
||||
|
Loading…
Reference in New Issue
Block a user