[ros-diffs] [cgutman] 56181: [PCI] - Add an unload handler to prevent warnings from the I/O manager

cgutman at svn.reactos.org cgutman at svn.reactos.org
Sun Mar 18 21:04:12 UTC 2012


Author: cgutman
Date: Sun Mar 18 21:04:12 2012
New Revision: 56181

URL: http://svn.reactos.org/svn/reactos?rev=56181&view=rev
Log:
[PCI]
- Add an unload handler to prevent warnings from the I/O manager

Modified:
    trunk/reactos/drivers/bus/pci/pci.c

Modified: trunk/reactos/drivers/bus/pci/pci.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pci/pci.c?rev=56181&r1=56180&r2=56181&view=diff
==============================================================================
--- trunk/reactos/drivers/bus/pci/pci.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/bus/pci/pci.c [iso-8859-1] Sun Mar 18 21:04:12 2012
@@ -181,6 +181,14 @@
 }
 
 
+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 @@
   DriverObject->MajorFunction[IRP_MJ_PNP] = PciPnpControl;
   DriverObject->MajorFunction[IRP_MJ_POWER] = PciPowerControl;
   DriverObject->DriverExtension->AddDevice = PciAddDevice;
+  DriverObject->DriverUnload = PciUnload;
 
   Status = IoAllocateDriverObjectExtension(
     DriverObject,




More information about the Ros-diffs mailing list