Added a call to pci->unreserve_device() in uninit_driver() as suggested by Matt (taking es1370 for model).
François please review. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39359 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -874,6 +874,11 @@ uninit_driver(void)
|
|||||||
|
|
||||||
for (ix=0; ix<cnt; ix++) {
|
for (ix=0; ix<cnt; ix++) {
|
||||||
auich_shutdown(&cards[ix]);
|
auich_shutdown(&cards[ix]);
|
||||||
|
#ifdef __HAIKU__
|
||||||
|
(*pci->unreserve_device)(cards[ix].info.bus,
|
||||||
|
cards[ix].info.device, cards[ix].info.function,
|
||||||
|
DRIVER_NAME, &cards[ix]);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
memset(&cards, 0, sizeof(cards));
|
memset(&cards, 0, sizeof(cards));
|
||||||
put_module(B_PCI_MODULE_NAME);
|
put_module(B_PCI_MODULE_NAME);
|
||||||
|
|||||||
@@ -643,6 +643,11 @@ uninit_driver(void)
|
|||||||
|
|
||||||
for (ix=0; ix<cnt; ix++) {
|
for (ix=0; ix<cnt; ix++) {
|
||||||
auvia_shutdown(&cards[ix]);
|
auvia_shutdown(&cards[ix]);
|
||||||
|
#ifdef __HAIKU__
|
||||||
|
(*pci->unreserve_device)(cards[ix].info.bus,
|
||||||
|
cards[ix].info.device, cards[ix].info.function,
|
||||||
|
DRIVER_NAME, &cards[ix]);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
memset(&cards, 0, sizeof(cards));
|
memset(&cards, 0, sizeof(cards));
|
||||||
put_module(B_PCI_MODULE_NAME);
|
put_module(B_PCI_MODULE_NAME);
|
||||||
|
|||||||
@@ -920,6 +920,11 @@ uninit_driver(void)
|
|||||||
num_cards = 0;
|
num_cards = 0;
|
||||||
for (ix=0; ix<cnt; ix++) {
|
for (ix=0; ix<cnt; ix++) {
|
||||||
echo_shutdown(&cards[ix]);
|
echo_shutdown(&cards[ix]);
|
||||||
|
#ifdef __HAIKU__
|
||||||
|
(*pci->unreserve_device)(cards[ix].info.bus,
|
||||||
|
cards[ix].info.device, cards[ix].info.function,
|
||||||
|
DRIVER_NAME, &cards[ix]);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
memset(&cards, 0, sizeof(cards));
|
memset(&cards, 0, sizeof(cards));
|
||||||
|
|||||||
@@ -3045,6 +3045,11 @@ uninit_driver(void)
|
|||||||
|
|
||||||
for (ix=0; ix<cnt; ix++) {
|
for (ix=0; ix<cnt; ix++) {
|
||||||
emuxki_shutdown(&cards[ix]);
|
emuxki_shutdown(&cards[ix]);
|
||||||
|
#ifdef __HAIKU__
|
||||||
|
(*pci->unreserve_device)(cards[ix].info.bus,
|
||||||
|
cards[ix].info.device, cards[ix].info.function,
|
||||||
|
DRIVER_NAME, &cards[ix]);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
memset(&cards, 0, sizeof(cards));
|
memset(&cards, 0, sizeof(cards));
|
||||||
put_module(B_MPU_401_MODULE_NAME);
|
put_module(B_MPU_401_MODULE_NAME);
|
||||||
|
|||||||
@@ -451,6 +451,11 @@ uninit_driver(void)
|
|||||||
|
|
||||||
for (ix = 0; ix < cnt; ix++) {
|
for (ix = 0; ix < cnt; ix++) {
|
||||||
ice_1712_shutdown(&cards[ix]);
|
ice_1712_shutdown(&cards[ix]);
|
||||||
|
#ifdef __HAIKU__
|
||||||
|
(*pci->unreserve_device)(cards[ix].info.bus,
|
||||||
|
cards[ix].info.device, cards[ix].info.function,
|
||||||
|
DRIVER_NAME, &cards[ix]);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
memset(&cards, 0, sizeof(cards));
|
memset(&cards, 0, sizeof(cards));
|
||||||
put_module(B_MPU_401_MODULE_NAME);
|
put_module(B_MPU_401_MODULE_NAME);
|
||||||
|
|||||||
Reference in New Issue
Block a user