diff options
| author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-11-14 17:17:21 -0500 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-11-14 17:17:21 -0500 |
| commit | 3a83f992490f8235661b768e53bd5f14915420ac (patch) | |
| tree | 6394984f7c2cb0346966681b963bbaab5de14c9d /include/linux | |
| parent | 7b1998116bbb2f3e5dd6cb9a8ee6db479b0b50a9 (diff) | |
ACPI: Eliminate the DEVICE_ACPI_HANDLE() macro
Since DEVICE_ACPI_HANDLE() is now literally identical to
ACPI_HANDLE(), replace it with the latter everywhere and drop its
definition from include/acpi.h.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/acpi.h | 2 | ||||
| -rw-r--r-- | include/linux/pci-acpi.h | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 47369aadb1d1..86a3ba99a38d 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h | |||
| @@ -482,8 +482,6 @@ static inline bool acpi_driver_match_device(struct device *dev, | |||
| 482 | 482 | ||
| 483 | #endif /* !CONFIG_ACPI */ | 483 | #endif /* !CONFIG_ACPI */ |
| 484 | 484 | ||
| 485 | #define DEVICE_ACPI_HANDLE(dev) ACPI_HANDLE(dev) | ||
| 486 | |||
| 487 | #ifdef CONFIG_ACPI | 485 | #ifdef CONFIG_ACPI |
| 488 | void acpi_os_set_prepare_sleep(int (*func)(u8 sleep_state, | 486 | void acpi_os_set_prepare_sleep(int (*func)(u8 sleep_state, |
| 489 | u32 pm1a_ctrl, u32 pm1b_ctrl)); | 487 | u32 pm1a_ctrl, u32 pm1b_ctrl)); |
diff --git a/include/linux/pci-acpi.h b/include/linux/pci-acpi.h index d006f0ca60f4..5a462c4e5009 100644 --- a/include/linux/pci-acpi.h +++ b/include/linux/pci-acpi.h | |||
| @@ -27,7 +27,7 @@ static inline acpi_handle acpi_find_root_bridge_handle(struct pci_dev *pdev) | |||
| 27 | while (!pci_is_root_bus(pbus)) | 27 | while (!pci_is_root_bus(pbus)) |
| 28 | pbus = pbus->parent; | 28 | pbus = pbus->parent; |
| 29 | 29 | ||
| 30 | return DEVICE_ACPI_HANDLE(pbus->bridge); | 30 | return ACPI_HANDLE(pbus->bridge); |
| 31 | } | 31 | } |
| 32 | 32 | ||
| 33 | static inline acpi_handle acpi_pci_get_bridge_handle(struct pci_bus *pbus) | 33 | static inline acpi_handle acpi_pci_get_bridge_handle(struct pci_bus *pbus) |
| @@ -39,7 +39,7 @@ static inline acpi_handle acpi_pci_get_bridge_handle(struct pci_bus *pbus) | |||
| 39 | else | 39 | else |
| 40 | dev = &pbus->self->dev; | 40 | dev = &pbus->self->dev; |
| 41 | 41 | ||
| 42 | return DEVICE_ACPI_HANDLE(dev); | 42 | return ACPI_HANDLE(dev); |
| 43 | } | 43 | } |
| 44 | 44 | ||
| 45 | void acpi_pci_add_bus(struct pci_bus *bus); | 45 | void acpi_pci_add_bus(struct pci_bus *bus); |
