ACPI/PCI: remove obsolete _OSC capability support functions
authorAndrew Patterson <andrew.patterson@hp.com>
Mon, 10 Nov 2008 22:31:10 +0000 (15:31 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 7 Jan 2009 19:12:32 +0000 (11:12 -0800)
The acpi_query_osc, __pci_osc_support_set, pci_osc_support_set, and
pcie_osc_support_set functions have been obsoleted in favor of setting
these capabilities during root bridge discovery with
pci_acpi_osc_support.  There are no longer any callers of these
functions, so remove them.

Signed-off-by: Andrew Patterson <andrew.patterson@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/pci-acpi.c
include/linux/pci-acpi.h

index 8a1f02c3c915f520c1e7fb2469f817dceb336cb4..8f923ee5177f788e0fa6553268447beb36362608 100644 (file)
@@ -175,31 +175,6 @@ out:
        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
index 424f06f84cab3756c471ee106708b8cc9d5a1bac..871e096e0fbcf8ce31298cefa8f792f8c58e1d80 100644 (file)
 
 #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 */
@@ -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