mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[PCI]
- Add an unload handler to prevent warnings from the I/O manager svn path=/trunk/; revision=56181
This commit is contained in:
parent
29c75480c5
commit
ed7d899020
1 changed files with 9 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue