Moved the unreserve_device() from ice_1712_shutdown() to uninit_driver(), to
keep consistency between drivers. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39401 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
f84079e242
commit
f05409cfb1
@ -434,9 +434,6 @@ ice_1712_shutdown(ice1712 *ice)
|
||||
codec_write(ice, AK45xx_RESET_REGISTER, 0x00);
|
||||
|
||||
save_settings(ice);
|
||||
|
||||
(*pci->unreserve_device)(ice->info.bus, ice->info.device,
|
||||
ice->info.function, DRIVER_NAME, ice);
|
||||
}
|
||||
|
||||
|
||||
@ -451,6 +448,9 @@ uninit_driver(void)
|
||||
|
||||
for (ix = 0; ix < cnt; ix++) {
|
||||
ice_1712_shutdown(&cards[ix]);
|
||||
(*pci->unreserve_device)(cards[ix].info.bus,
|
||||
cards[ix].info.device, cards[ix].info.function,
|
||||
DRIVER_NAME, &cards[ix]);
|
||||
}
|
||||
memset(&cards, 0, sizeof(cards));
|
||||
put_module(B_MPU_401_MODULE_NAME);
|
||||
|
Loading…
Reference in New Issue
Block a user