Sync with trunk r58151 to bring the latest changes from Amine and Timo.
[reactos.git] / drivers / bus / pci / pci.c
index 25621e4..386680a 100644 (file)
@@ -181,6 +181,14 @@ PciAddDevice(
 }
 
 
+VOID
+NTAPI
+PciUnload(
+  IN PDRIVER_OBJECT DriverObject)
+{
+    /* The driver object extension is destroyed by the I/O manager */
+}
+
 NTSTATUS
 NTAPI
 DriverEntry(
@@ -196,6 +204,7 @@ DriverEntry(
   DriverObject->MajorFunction[IRP_MJ_PNP] = PciPnpControl;
   DriverObject->MajorFunction[IRP_MJ_POWER] = PciPowerControl;
   DriverObject->DriverExtension->AddDevice = PciAddDevice;
+  DriverObject->DriverUnload = PciUnload;
 
   Status = IoAllocateDriverObjectExtension(
     DriverObject,