summaryrefslogtreecommitdiffstats
path: root/include/linux/acpi.h
diff options
context:
space:
mode:
authorDustin Byford <dustin@cumulusnetworks.com>2015-10-23 12:27:06 -0700
committerWolfram Sang <wsa@the-dreams.de>2015-10-25 15:46:28 +0100
commitc0e5c4450494d74c8deb4f47ddcbb74c94937e20 (patch)
treea192260242fb055bcb2fc49b332d0229c016c1ba /include/linux/acpi.h
parentc5fa6fc79f5b1fbe540300dbe3efbaa515b05282 (diff)
downloadop-kernel-dev-c0e5c4450494d74c8deb4f47ddcbb74c94937e20.zip
op-kernel-dev-c0e5c4450494d74c8deb4f47ddcbb74c94937e20.tar.gz
acpi: add acpi_preset_companion() stub
Add a stub for acpi_preset_companion(). Fixes build failures when acpi_preset_companion() is used and CONFIG_ACPI is not set. Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Dustin Byford <dustin@cumulusnetworks.com> Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'include/linux/acpi.h')
-rw-r--r--include/linux/acpi.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/acpi.h b/include/linux/acpi.h
index 43856d1..43b55e7 100644
--- a/include/linux/acpi.h
+++ b/include/linux/acpi.h
@@ -477,6 +477,11 @@ static inline bool has_acpi_companion(struct device *dev)
return false;
}
+static inline void acpi_preset_companion(struct device *dev,
+ struct acpi_device *parent, u64 addr)
+{
+}
+
static inline const char *acpi_dev_name(struct acpi_device *adev)
{
return NULL;
OpenPOWER on IntegriCloud