summaryrefslogtreecommitdiffstats
path: root/src/interface/efi/efi_pci.c
diff options
context:
space:
mode:
authorMichael Brown2014-03-10 16:42:21 +0100
committerMichael Brown2014-03-10 17:39:46 +0100
commit8de6b973c487605002143d65d0082bb2ed50714e (patch)
treef30472b7cb371345aa5ee8bbc11570a6ec6bd536 /src/interface/efi/efi_pci.c
parent[efi] Allow for 64-bit EFI_STATUS codes (diff)
downloadipxe-8de6b973c487605002143d65d0082bb2ed50714e.tar.gz
ipxe-8de6b973c487605002143d65d0082bb2ed50714e.tar.xz
ipxe-8de6b973c487605002143d65d0082bb2ed50714e.zip
[efi] Allow driver to be unloaded
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/interface/efi/efi_pci.c')
-rw-r--r--src/interface/efi/efi_pci.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/interface/efi/efi_pci.c b/src/interface/efi/efi_pci.c
index d6095d3e..dc7304a3 100644
--- a/src/interface/efi/efi_pci.c
+++ b/src/interface/efi/efi_pci.c
@@ -519,6 +519,9 @@ static void efipci_driver_shutdown ( int booting __unused ) {
struct efi_pci_device *efipci;
struct efi_pci_device *tmp;
+ /* Uninstall driver */
+ efi_driver_uninstall ( efidrv );
+
/* Shut down any remaining devices */
list_for_each_entry_safe ( efipci, tmp, &efi_pci_devices, list ) {
DBGC ( efipci, "EFIPCI " PCI_FMT " still active at shutdown; "