acpi: add acpi_preset_companion() stub
authorDustin Byford <dustin@cumulusnetworks.com>
Fri, 23 Oct 2015 19:27:06 +0000 (12:27 -0700)
committerWolfram Sang <wsa@the-dreams.de>
Sun, 25 Oct 2015 14:46:28 +0000 (15:46 +0100)
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>
include/linux/acpi.h

index 43856d1..43b55e7 100644 (file)
@@ -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;