Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 102229
b: refs/heads/master
c: c155062
h: refs/heads/master
i:
  102227: f98e332
v: v3
  • Loading branch information
Kenji Kaneshige authored and Jesse Barnes committed Jun 10, 2008
1 parent 950bbd3 commit 7bb1faf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 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: 681f7d9db58d2b6dc3c3b784d6815f86a53b6ba0
refs/heads/master: c155062d6ebed676f62761f90c62894a97816932
15 changes: 4 additions & 11 deletions trunk/drivers/pci/pci-acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ static acpi_status acpi_query_osc(acpi_handle handle,
u32 level, void *context, void **retval)
{
acpi_status status;
acpi_status *ret_status = (acpi_status *)retval;
struct acpi_osc_data *osc_data;
u32 flags = (unsigned long)context, support_set;
acpi_handle tmp;
Expand All @@ -143,8 +142,6 @@ static acpi_status acpi_query_osc(acpi_handle handle,
osc_args.capbuf[OSC_CONTROL_TYPE] = OSC_CONTROL_MASKS;

status = acpi_run_osc(handle, &osc_args);
*ret_status = status;

if (ACPI_SUCCESS(status)) {
osc_data->support_set = support_set;
osc_data->query_result = osc_args.query_result;
Expand All @@ -164,15 +161,11 @@ static acpi_status acpi_query_osc(acpi_handle handle,
**/
acpi_status __pci_osc_support_set(u32 flags, const char *hid)
{
acpi_status retval = AE_NOT_FOUND;

if (!(flags & OSC_SUPPORT_MASKS)) {
if (!(flags & OSC_SUPPORT_MASKS))
return AE_TYPE;
}
acpi_get_devices(hid,
acpi_query_osc,
(void *)(unsigned long)flags,
(void **) &retval );

acpi_get_devices(hid, acpi_query_osc,
(void *)(unsigned long)flags, NULL);
return AE_OK;
}

Expand Down

0 comments on commit 7bb1faf

Please sign in to comment.