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=5... ============================================================================== --- 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,