mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 17:52:56 +00:00
[USB-BRINGUP-TRUNK]
- Don't do any special checks for AddDevice; a failure check is enough svn path=/branches/usb-bringup-trunk/; revision=55042
This commit is contained in:
parent
8fdcfb28ce
commit
a687ae8748
1 changed files with 0 additions and 9 deletions
|
@ -102,16 +102,7 @@ IopInitializeDevice(PDEVICE_NODE DeviceNode,
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check if driver added a FDO above the PDO */
|
|
||||||
Fdo = IoGetAttachedDeviceReference(DeviceNode->PhysicalDeviceObject);
|
Fdo = IoGetAttachedDeviceReference(DeviceNode->PhysicalDeviceObject);
|
||||||
if (Fdo == DeviceNode->PhysicalDeviceObject)
|
|
||||||
{
|
|
||||||
/* FIXME: What do we do? Unload the driver or just disable the device? */
|
|
||||||
DPRINT1("An FDO was not attached\n");
|
|
||||||
ObDereferenceObject(Fdo);
|
|
||||||
IopDeviceNodeSetFlag(DeviceNode, DNF_DISABLED);
|
|
||||||
return STATUS_UNSUCCESSFUL;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Check if we have a ACPI device (needed for power management) */
|
/* Check if we have a ACPI device (needed for power management) */
|
||||||
if (Fdo->DeviceType == FILE_DEVICE_ACPI)
|
if (Fdo->DeviceType == FILE_DEVICE_ACPI)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue