Moved the unreserve_device() from ali_terminate() to uninit_driver(), to keep
consistency between drivers. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39402 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
f05409cfb1
commit
2f0376a62f
@ -271,9 +271,6 @@ ali_terminate(ali_dev *card)
|
||||
delete_sem(card->sem_buf_ready);
|
||||
|
||||
hardware_terminate(card);
|
||||
|
||||
(*gPCI->unreserve_device)(card->info.bus, card->info.device,
|
||||
card->info.function, DRIVER_NAME, card);
|
||||
}
|
||||
|
||||
|
||||
@ -418,8 +415,11 @@ uninit_driver(void)
|
||||
{
|
||||
int32 i = gCardsCount;
|
||||
|
||||
while (i--)
|
||||
while (i--) {
|
||||
ali_terminate(&gCards[i]);
|
||||
(*gPCI->unreserve_device)(gCards[i].info.bus, gCards[i].info.device,
|
||||
gCards[i].info.function, DRIVER_NAME, &gCards[i]);
|
||||
}
|
||||
memset(&gCards, 0, sizeof(gCards));
|
||||
|
||||
put_module(B_PCI_MODULE_NAME);
|
||||
|
Loading…
Reference in New Issue
Block a user