Forgot to commit this with r19248... ("Add back ACPI device, to allow auto power...
authorHervé Poussineau <hpoussin@reactos.org>
Tue, 15 Nov 2005 16:48:24 +0000 (16:48 +0000)
committerHervé Poussineau <hpoussin@reactos.org>
Tue, 15 Nov 2005 16:48:24 +0000 (16:48 +0000)
svn path=/trunk/; revision=19249

reactos/drivers/bus/acpi/ospm/acpisys.c

index 9aa53cb..a5d50cc 100644 (file)
@@ -125,6 +125,9 @@ ACPIAddDevice(
 
   DPRINT("Called\n");
 
+  if (PhysicalDeviceObject == NULL)
+    return STATUS_SUCCESS;
+
   Status = IoCreateDevice(DriverObject,
                           sizeof(FDO_DEVICE_EXTENSION),
                           NULL,
@@ -143,8 +146,8 @@ ACPIAddDevice(
   DeviceExtension->Pdo = PhysicalDeviceObject;
   DeviceExtension->Common.IsFDO = TRUE;
 
-  //DeviceExtension->Common.Ldo =
-  //  IoAttachDeviceToDeviceStack(Fdo, PhysicalDeviceObject);
+  DeviceExtension->Common.Ldo =
+    IoAttachDeviceToDeviceStack(Fdo, PhysicalDeviceObject);
 
   DeviceExtension->State = dsStopped;