Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4722
b: refs/heads/master
c: a406d9e
h: refs/heads/master
v: v3
  • Loading branch information
Len Brown committed Jul 12, 2005
1 parent aaa6633 commit 2a0c307
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fa9cd547e097df4966b8bd5c94aeed953e32b14d
refs/heads/master: a406d9e63e1d7088aad22565449de2e109300e5c
15 changes: 2 additions & 13 deletions trunk/drivers/pci/pci-acpi.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* File: pci-acpi.c
* Purpose: Provde PCI support in ACPI
* Purpose: Provide PCI support in ACPI
*
* Copyright (C) 2005 David Shaohua Li <shaohua.li@intel.com>
* Copyright (C) 2004 Tom Long Nguyen <tom.l.nguyen@intel.com>
Expand Down Expand Up @@ -237,19 +237,8 @@ EXPORT_SYMBOL(pci_osc_control_set);

static int acpi_pci_choose_state(struct pci_dev *pdev, pm_message_t state)
{
char dstate_str[] = "_S0D";
acpi_status status;
unsigned long val;
struct device *dev = &pdev->dev;
/* TBD */

/* Fixme: the check is wrong after pm_message_t is a struct */
if ((state >= PM_SUSPEND_MAX) || !DEVICE_ACPI_HANDLE(dev))
return -EINVAL;
dstate_str[2] += state; /* _S1D, _S2D, _S3D, _S4D */
status = acpi_evaluate_integer(DEVICE_ACPI_HANDLE(dev), dstate_str,
NULL, &val);
if (ACPI_SUCCESS(status))
return val;
return -ENODEV;
}

Expand Down

0 comments on commit 2a0c307

Please sign in to comment.