mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
fix powerdown when reactos shortdown by Herv� Poussineau
svn path=/trunk/; revision=12322
This commit is contained in:
parent
63dde03aef
commit
2b91825e80
3 changed files with 8 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: acpisys.c,v 1.5 2002/05/05 14:57:44 chorns Exp $
|
||||
/* $Id: acpisys.c,v 1.6 2004/12/25 00:44:49 greatlrd Exp $
|
||||
*
|
||||
* PROJECT: ReactOS ACPI bus driver
|
||||
* FILE: acpi/ospm/acpisys.c
|
||||
|
@ -83,7 +83,7 @@ ACPIPnpControl(
|
|||
if (DeviceExtension->IsFDO) {
|
||||
Status = FdoPnpControl(DeviceObject, Irp);
|
||||
} else {
|
||||
Status = FdoPnpControl(DeviceObject, Irp);
|
||||
Status = PdoPnpControl(DeviceObject, Irp);
|
||||
}
|
||||
|
||||
return Status;
|
||||
|
@ -135,6 +135,7 @@ ACPIAddDevice(
|
|||
DeviceExtension = (PFDO_DEVICE_EXTENSION)Fdo->DeviceExtension;
|
||||
|
||||
DeviceExtension->Pdo = PhysicalDeviceObject;
|
||||
DeviceExtension->Common.IsFDO = TRUE;
|
||||
|
||||
DeviceExtension->Common.Ldo =
|
||||
IoAttachDeviceToDeviceStack(Fdo, PhysicalDeviceObject);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*****************************************************************************
|
||||
*
|
||||
* Module Name: bn.c
|
||||
* $Revision: 1.1 $
|
||||
* $Revision: 1.2 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
|
@ -361,6 +361,9 @@ bn_initialize (void)
|
|||
MEMCPY(criteria.hid, BN_HID_LID_SWITCH, sizeof(BN_HID_LID_SWITCH));
|
||||
status = bm_register_driver(&criteria, &driver);
|
||||
|
||||
if (status == AE_NOT_FOUND)
|
||||
status = AE_OK;
|
||||
|
||||
return_ACPI_STATUS(status);
|
||||
}
|
||||
|
||||
|
|
|
@ -228,7 +228,7 @@ acpi_os_install_interrupt_handler(u32 irq, OSD_HANDLER handler, void *context)
|
|||
DIrql,
|
||||
DIrql,
|
||||
LevelSensitive, /* FIXME: LevelSensitive or Latched? */
|
||||
FALSE,
|
||||
TRUE,
|
||||
Affinity,
|
||||
FALSE);
|
||||
if (!NT_SUCCESS(Status)) {
|
||||
|
|
Loading…
Reference in a new issue