Enumerate FILE_DEVICE_BUS_EXTENDER and FILE_DEVICE_ACPI devices.

svn path=/trunk/; revision=12360
This commit is contained in:
Eric Kohl 2004-12-27 14:21:35 +00:00
parent d8d3883496
commit e81ecb35ce

View file

@ -1,4 +1,4 @@
/* $Id: device.c,v 1.86 2004/12/24 17:06:58 navaraf Exp $
/* $Id: device.c,v 1.87 2004/12/27 14:21:35 ekohl Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -83,21 +83,9 @@ IopInitializeDevice(
return Status;
}
if (Fdo->DeviceType == FILE_DEVICE_BUS_EXTENDER)
{
DPRINT("Bus extender found\n");
Status = IopInvalidateDeviceRelations(DeviceNode, BusRelations);
if (!NT_SUCCESS(Status))
{
ObDereferenceObject(Fdo);
return Status;
}
}
else if (Fdo->DeviceType == FILE_DEVICE_ACPI)
{
#ifdef ACPI
if (Fdo->DeviceType == FILE_DEVICE_ACPI)
{
static BOOLEAN SystemPowerDeviceNodeCreated = FALSE;
/* There can be only one system power device */
@ -106,7 +94,20 @@ IopInitializeDevice(
PopSystemPowerDeviceNode = DeviceNode;
SystemPowerDeviceNodeCreated = TRUE;
}
}
#endif /* ACPI */
if (Fdo->DeviceType == FILE_DEVICE_BUS_EXTENDER ||
Fdo->DeviceType == FILE_DEVICE_ACPI)
{
DPRINT("Bus extender found\n");
Status = IopInvalidateDeviceRelations(DeviceNode, BusRelations);
if (!NT_SUCCESS(Status))
{
ObDereferenceObject(Fdo);
return Status;
}
}
ObDereferenceObject(Fdo);