Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127343
b: refs/heads/master
c: 2361694
h: refs/heads/master
i:
  127341: 487af61
  127339: 825697c
  127335: 9206c7a
  127327: 63cc816
v: v3
  • Loading branch information
Andrew Patterson authored and Jesse Barnes committed Jan 7, 2009
1 parent fb3b0d1 commit 10e807a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 37 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: 07ae95f988a34465bdcb384bfa73c03424fe2312
refs/heads/master: 23616941914917cf25b94789856b5326b68d8ee8
25 changes: 0 additions & 25 deletions trunk/drivers/pci/pci-acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,31 +175,6 @@ int pci_acpi_osc_support(acpi_handle handle, u32 flags)
return rc;
}

static acpi_status acpi_query_osc(acpi_handle handle, u32 level,
void *context, void **retval)
{
pci_acpi_osc_support(handle, (unsigned long)context);
return AE_OK;
}

/**
* __pci_osc_support_set - register OS support to Firmware
* @flags: OS support bits
* @hid: hardware ID
*
* Update OS support fields and doing a _OSC Query to obtain an update
* from Firmware on supported control bits.
**/
acpi_status __pci_osc_support_set(u32 flags, const char *hid)
{
if (!(flags & OSC_SUPPORT_MASKS))
return AE_TYPE;

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

/**
* pci_osc_control_set - commit requested control to Firmware
* @handle: acpi_handle for the target ACPI object
Expand Down
11 changes: 0 additions & 11 deletions trunk/include/linux/pci-acpi.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,7 @@

#ifdef CONFIG_ACPI
extern acpi_status pci_osc_control_set(acpi_handle handle, u32 flags);
extern acpi_status __pci_osc_support_set(u32 flags, const char *hid);
int pci_acpi_osc_support(acpi_handle handle, u32 flags);
static inline acpi_status pci_osc_support_set(u32 flags)
{
return __pci_osc_support_set(flags, PCI_ROOT_HID_STRING);
}
static inline acpi_status pcie_osc_support_set(u32 flags)
{
return __pci_osc_support_set(flags, PCI_EXPRESS_ROOT_HID_STRING);
}
static inline acpi_handle acpi_find_root_bridge_handle(struct pci_dev *pdev)
{
/* Find root host bridge */
Expand All @@ -76,8 +67,6 @@ typedef u32 acpi_status;
#endif
static inline acpi_status pci_osc_control_set(acpi_handle handle, u32 flags)
{return AE_ERROR;}
static inline acpi_status pci_osc_support_set(u32 flags) {return AE_ERROR;}
static inline acpi_status pcie_osc_support_set(u32 flags) {return AE_ERROR;}
static inline acpi_handle acpi_find_root_bridge_handle(struct pci_dev *pdev)
{ return NULL; }
#endif
Expand Down

0 comments on commit 10e807a

Please sign in to comment.