Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41219
b: refs/heads/master
c: 0dcb2b7
h: refs/heads/master
i:
  41217: edc59c6
  41215: a7d6345
v: v3
  • Loading branch information
Kristen Carlson Accardi authored and Greg Kroah-Hartman committed Dec 1, 2006
1 parent 484f52b commit 90fea0e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 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: 0a9dee2739fd4385e83c3316e3f3bee641796638
refs/heads/master: 0dcb2b7e722f62b886f28b01150860de67d219fa
10 changes: 9 additions & 1 deletion trunk/drivers/pci/pci-acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ acpi_query_osc (
struct acpi_buffer output = {ACPI_ALLOCATE_BUFFER, NULL};
union acpi_object *out_obj;
u32 osc_dw0;
acpi_status *ret_status = (acpi_status *)retval;


/* Setting up input parameters */
Expand All @@ -56,6 +57,7 @@ acpi_query_osc (
if (ACPI_FAILURE (status)) {
printk(KERN_DEBUG
"Evaluate _OSC Set fails. Status = 0x%04x\n", status);
*ret_status = status;
return status;
}
out_obj = output.pointer;
Expand Down Expand Up @@ -90,6 +92,7 @@ acpi_query_osc (

query_osc_out:
kfree(output.pointer);
*ret_status = status;
return status;
}

Expand Down Expand Up @@ -166,6 +169,7 @@ acpi_run_osc (
acpi_status pci_osc_support_set(u32 flags)
{
u32 temp;
acpi_status retval;

if (!(flags & OSC_SUPPORT_MASKS)) {
return AE_TYPE;
Expand All @@ -179,9 +183,13 @@ acpi_status pci_osc_support_set(u32 flags)
acpi_get_devices ( PCI_ROOT_HID_STRING,
acpi_query_osc,
ctrlset_buf,
NULL );
(void **) &retval );
ctrlset_buf[OSC_QUERY_TYPE] = !OSC_QUERY_ENABLE;
ctrlset_buf[OSC_CONTROL_TYPE] = temp;
if (ACPI_FAILURE(retval)) {
/* no osc support at all */
ctrlset_buf[OSC_SUPPORT_TYPE] = 0;
}
return AE_OK;
}
EXPORT_SYMBOL(pci_osc_support_set);
Expand Down

0 comments on commit 90fea0e

Please sign in to comment.