X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=drivers%2Fbus%2Fpci%2Fpci.c;h=386680a79fa516b9710e788d75baef2e3fc2fb46;hp=25621e4ff8aac3a8e733a6dc75a60380888ff54f;hb=3a4f8f455fd298b32aef2c8e8afeefe17b31dedd;hpb=a070e2aaf24b3fb8746916053ac8f30bf26dbd1d diff --git a/drivers/bus/pci/pci.c b/drivers/bus/pci/pci.c index 25621e4ff8a..386680a79fa 100644 --- a/drivers/bus/pci/pci.c +++ b/drivers/bus/pci/pci.c @@ -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,